/* Returns TRUE if this function destroyed the current instance of #CRSelector, FALSE otherwise.  */
gboolean cr_selector_unref(CRSelector *a_this)
/* Returns TRUE if this function destroyed the current instance of #CRSelector, FALSE otherwise.  */
gboolean cr_selector_unref(CRSelector *a_this)
{
        g_return_val_if_fail (a_this, FALSE);
        if (a_this->ref_count) {
                a_this->ref_count--;
        }
        if (a_this->ref_count == 0) {
                cr_selector_destroy (a_this);
                return TRUE;
        }
        return FALSE;
}