/* Duplicates the current instance of #CRStyle . The newly created instance of #CRStyle must be freed using cr_style_destroy ().  */
CRStyle* cr_style_dup(CRStyle *a_this)
/* Duplicates the current instance of #CRStyle . The newly created instance of #CRStyle must be freed using cr_style_destroy ().  */
CRStyle* cr_style_dup(CRStyle *a_this)
{
        CRStyle *result = NULL;
        g_return_val_if_fail (a_this, NULL);
        result = cr_style_new (FALSE);
        if (!result) {
                cr_utils_trace_info ("Out of memory");
                return NULL;
        }
        cr_style_copy (result, a_this);
        return result;
}