/* Destroys the current instance of #CRAttrSel. Frees all the fields if they are non null.  */
void cr_attr_sel_destroy(CRAttrSel *a_this)
/* Destroys the current instance of #CRAttrSel. Frees all the fields if they are non null.  */
void cr_attr_sel_destroy(CRAttrSel *a_this)
{
        g_return_if_fail (a_this);
        if (a_this->name) {
                cr_string_destroy (a_this->name);
                a_this->name = NULL;
        }
        if (a_this->value) {
                cr_string_destroy (a_this->value);
                a_this->value = NULL;
        }
        if (a_this->next) {
                cr_attr_sel_destroy (a_this->next);
                a_this->next = NULL;
        }
        if (a_this) {
                g_free (a_this);
                a_this = NULL;
        }
}