Logo Search packages:      
Sourcecode: inkscape version File versions

gboolean cr_term_unref ( CRTerm a_this  ) 

Decrements the ref count of the current instance of CRTerm. If the ref count reaches zero, the instance is destroyed.

Parameters:
a_this the current instance of CRTerm.
Returns:
TRUE if the current instance has been destroyed, FALSE otherwise.

Definition at line 752 of file cr-term.c.

References cr_term_destroy(), and _CRTerm::ref_count.

Referenced by cr_parser_parse_font_face(), and cr_parser_parse_ruleset().

{
        g_return_val_if_fail (a_this, FALSE);

        if (a_this->ref_count) {
                a_this->ref_count--;
        }

        if (a_this->ref_count == 0) {
                cr_term_destroy (a_this);
                return TRUE;
        }

        return FALSE;
}


Generated by  Doxygen 1.6.0   Back to index