Logo Search packages:      
Sourcecode: inkscape version File versions

SPObject* sp_object_hunref ( SPObject object,
gpointer  owner 
)

Decrease weak refcount.

Hrefcount is used for weak references, for example, to determine whether any graphical element references a certain gradient node.

Parameters:
owner Ignored.
Returns:
always NULL
Precondition:
object points to real object and hrefcount>0

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

References SPObject::hrefcount.

Referenced by sp_style_filter_clear(), and sp_style_paint_clear().

{
    g_return_val_if_fail(object != NULL, NULL);
    g_return_val_if_fail(SP_IS_OBJECT(object), NULL);
    g_return_val_if_fail(object->hrefcount > 0, NULL);

    object->hrefcount--;
    object->_updateTotalHRefCount(-1);

    return NULL;
}


Generated by  Doxygen 1.6.0   Back to index