[project @ 2005-01-16 00:14:31 by jmb]

Ensure style struct exists before attempting to free

svn path=/import/netsurf/; revision=1452
This commit is contained in:
John Mark Bell 2005-01-16 00:14:31 +00:00
parent 01564e642d
commit b75313f591

View File

@ -2458,7 +2458,7 @@ void box_free_box(struct box *box)
free(box->href);
free(box->title);
free(box->col);
if (!box->style_clone)
if (!box->style_clone && box->style)
css_free_style(box->style);
}