Logo Search packages:      
Sourcecode: inkscape version File versions

SPCurve* sp_curve_unref ( SPCurve curve  ) 

Decrease refcount of curve, with possible destruction.

should this be shared with other refcounting code?

Definition at line 148 of file curve.cpp.

References SPCurve::_bpath, and SPCurve::refcount.

Referenced by Inkscape::Text::Layout::convertToCurves(), fit_and_split(), 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->_bpath) {

    return NULL;

Generated by  Doxygen 1.6.0   Back to index