Logo Search packages:      
Sourcecode: inkscape version File versions

static void sp_offset_release ( SPObject object  )  [static]

Virtual release callback.

Definition at line 305 of file sp-offset.cpp.

References SPOffset::_changed_connection, SPOffset::original, SPOffset::originalPath, SPOffset::sourceHref, and SPOffset::sourceRef.

Referenced by sp_offset_class_init().

{
    SPOffset *offset = (SPOffset *) object;

    if (offset->original) free (offset->original);
    if (offset->originalPath) delete ((Path *) offset->originalPath);
    offset->original = NULL;
    offset->originalPath = NULL;

    sp_offset_quit_listening(offset);

    offset->_changed_connection.disconnect();
    g_free(offset->sourceHref);
    offset->sourceHref = NULL;
    offset->sourceRef->detach();

    if (((SPObjectClass *) parent_class)->release) {
        ((SPObjectClass *) parent_class)->release (object);
    }

}


Generated by  Doxygen 1.6.0   Back to index