Fix attempt to destroy selection resutls that don't exist.

svn path=/trunk/netsurf/; revision=11216
This commit is contained in:
Michael Drake 2011-01-05 19:53:35 +00:00
parent 08ed4c207f
commit 12a9c138e6

View File

@ -163,7 +163,7 @@ css_stylesheet *nscss_create_inline_style(const uint8_t *data, size_t len,
}
/**
* Get a style for an element
* Get a style selection results (partial computed styles) for an element
*
* \param html HTML document
* \param n Element to select for
@ -186,7 +186,6 @@ css_select_results *nscss_get_style(struct content *html, xmlNode *n,
error = css_select_style(html->data.html.select_ctx, n, media,
inline_style, &selection_handler, html, &styles);
if (error != CSS_OK) {
css_select_results_destroy(styles);
return NULL;
}