[project @ 2005-01-16 21:32:10 by jmb]

Ensure style exists before freeing it

svn path=/import/netsurf/; revision=1455
This commit is contained in:
John Mark Bell 2005-01-16 21:32:10 +00:00
parent d63e9fac4f
commit 7ab8b2c1ba
1 changed files with 3 additions and 1 deletions

View File

@ -1035,7 +1035,9 @@ void html_destroy(struct content *c)
}
}
free(c->data.html.stylesheet_content);
css_free_style(c->data.html.style);
if (c->data.html.style)
css_free_style(c->data.html.style);
if (c->data.html.fonts)
nsfont_free_set(c->data.html.fonts);