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

SPDrawAnchor* sp_draw_anchor_destroy ( SPDrawAnchor anchor )

Destroys the anchor's canvas item and frees the anchor object.

Definition at line 62 of file draw-anchor.cpp.

References SPCurve::unref().

Referenced by pencil_handle_button_release().

{
    if (anchor->curve) {
        anchor->curve->unref();
    }
    if (anchor->ctrl) {
        gtk_object_destroy(GTK_OBJECT(anchor->ctrl));
    }
    g_free(anchor);
    return NULL;
}

Here is the call graph for this function:

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index