/* Decreases the reference count of the current instance of #CRStyle. If the reference count reaches 0, the instance of #CRStyle is destoyed.  */
gboolean cr_style_unref(CRStyle *a_this)
/* Decreases the reference count of the current instance of #CRStyle. If the reference count reaches 0, the instance of #CRStyle is destoyed.  */
gboolean cr_style_unref(CRStyle *a_this)
{
        g_return_val_if_fail (a_this, FALSE);
        if (a_this->ref_count)
                a_this->ref_count--;
        if (!a_this->ref_count) {
                cr_style_destroy (a_this);
                return TRUE;
        }
        return FALSE;
}