Logo Search packages:      
Sourcecode: inkscape version File versions  Download package

SPCurve* sp_curve_unref ( SPCurve curve  ) 

Decrease refcount of curve, with possible destruction.

should this be shared with other refcounting code?

Definition at line 210 of file curve.cpp.

References SPCurve::bpath, SPCurve::refcount, and SPCurve::sbpath.

Referenced by Inkscape::Text::Layout::convertToCurves(), fit_and_split(), nodepath_repr_d_changed(), sp_nodepath_new(), sp_offset_set(), sp_offset_set_shape(), sp_offset_top_point(), spdc_pen_finish_segment(), stamp_repr(), update_object(), and update_repr_internal().

    g_return_val_if_fail(curve != NULL, NULL);

    curve->refcount -= 1;

    if (curve->refcount < 1) {
        if ((!curve->sbpath) && (curve->bpath)) {

    return NULL;

Generated by  Doxygen 1.6.0   Back to index