Logo Search packages:      
Sourcecode: inkscape version File versions

static void sp_object_finalize ( GObject *  object  )  [static]

Callback to destroy all members and connections of object and itself.

Definition at line 204 of file sp-object.cpp.

References SPObject::_default_label, SPObject::_delete_signal, SPObject::_label, SPObject::_modified_signal, SPObject::_position_changed_signal, SPObject::_release_signal, SPObject::_successor, and sp_object_unref().

Referenced by sp_object_class_init().

{
    SPObject *spobject = (SPObject *)object;

    g_free(spobject->_label);
    g_free(spobject->_default_label);
    spobject->_label = NULL;
    spobject->_default_label = NULL;

    if (spobject->_successor) {
        sp_object_unref(spobject->_successor, NULL);
        spobject->_successor = NULL;
    }

    if (((GObjectClass *) (parent_class))->finalize) {
        (* ((GObjectClass *) (parent_class))->finalize)(object);
    }

    spobject->_release_signal.~signal();
    spobject->_modified_signal.~signal();
    spobject->_delete_signal.~signal();
    spobject->_position_changed_signal.~signal();
}


Generated by  Doxygen 1.6.0   Back to index