Logo Search packages:      
Sourcecode: inkscape version File versions

SPObject* sp_object_unref ( SPObject object,
SPObject owner 
)

Decrease reference count of object, with possible debugging and finalization.

Parameters:
owner If non-NULL, make debug log entry.
Returns:
always NULL
Precondition:
object points to real object

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

Referenced by Inkscape::Selection::_releaseContext(), Inkscape::ObjectHierarchy::_trimAbove(), Inkscape::ObjectHierarchy::_trimBelow(), SPObject::deleteObject(), Inkscape::LayerVerb::perform(), Inkscape::ObjectHierarchy::setBottom(), sp_object_build(), sp_object_child_added(), sp_object_detach(), sp_object_finalize(), sp_object_private_set(), and sp_tref_convert_to_tspan().

{
    g_return_val_if_fail(object != NULL, NULL);
    g_return_val_if_fail(SP_IS_OBJECT(object), NULL);
    g_return_val_if_fail(!owner || SP_IS_OBJECT(owner), NULL);

    Inkscape::Debug::EventTracker<UnrefEvent> tracker(object);
    g_object_unref(G_OBJECT(object));
    return NULL;
}


Generated by  Doxygen 1.6.0   Back to index