exc = dom_element_get_attribute(svg, state.interned_viewBox,
&view_box);
if (exc != DOM_NO_ERR) {
+ css_select_results_destroy(styles);
svgtiny_cleanup_state_local(&state);
return svgtiny_LIBDOM_ERROR;
}
exc = dom_node_get_first_child(svg, (dom_node **) (void *) &child);
if (exc != DOM_NO_ERR) {
+ css_select_results_destroy(styles);
svgtiny_cleanup_state_local(&state);
return svgtiny_LIBDOM_ERROR;
}
exc = dom_node_get_node_type(child, &nodetype);
if (exc != DOM_NO_ERR) {
dom_node_unref(child);
+ css_select_results_destroy(styles);
svgtiny_cleanup_state_local(&state);
return svgtiny_LIBDOM_ERROR;
}
exc = dom_node_get_node_name(child, &nodename);
if (exc != DOM_NO_ERR) {
dom_node_unref(child);
+ css_select_results_destroy(styles);
svgtiny_cleanup_state_local(&state);
return svgtiny_LIBDOM_ERROR;
}
}
if (code != svgtiny_OK) {
dom_node_unref(child);
+ css_select_results_destroy(styles);
svgtiny_cleanup_state_local(&state);
return code;
}
(dom_node **) (void *) &next);
dom_node_unref(child);
if (exc != DOM_NO_ERR) {
+ css_select_results_destroy(styles);
svgtiny_cleanup_state_local(&state);
return svgtiny_LIBDOM_ERROR;
}