diff options
Diffstat (limited to 'render')
-rw-r--r-- | render/html.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/render/html.c b/render/html.c index dc6646821..0d868f996 100644 --- a/render/html.c +++ b/render/html.c @@ -336,8 +336,14 @@ void html_find_stylesheets(struct content *c, xmlNode *head) c->data.html.stylesheet_count = i; - if (c->data.html.stylesheet_content[1] != 0) - content_convert(c->data.html.stylesheet_content[1], c->width, c->height); + if (c->data.html.stylesheet_content[1] != 0) { + if (css_convert(c->data.html.stylesheet_content[1], c->width, + c->height)) { + /* conversion failed */ + content_destroy(c->data.html.stylesheet_content[1]); + c->data.html.stylesheet_content[1] = 0; + } + } /* complete the fetches */ while (c->active != 0) { |