From 12a9c138e6a88e2e76dfd8716f3a839a80b95dbc Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Wed, 5 Jan 2011 19:53:35 +0000 Subject: Fix attempt to destroy selection resutls that don't exist. svn path=/trunk/netsurf/; revision=11216 --- css/select.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'css/select.c') diff --git a/css/select.c b/css/select.c index be090c0db..4054f6185 100644 --- a/css/select.c +++ b/css/select.c @@ -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; } -- cgit v1.2.3