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

SPObject* sp_object_hunref ( SPObject object,
gpointer   
)

Decrease weak refcount.

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

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

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

{
    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