summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2005-01-16 00:14:31 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2005-01-16 00:14:31 +0000
commitb75313f591c11b2693895a5a367fff0e5dca1dd0 (patch)
treef2fbc572837a15ff2f9d5d30b4789cf95d8f6049
parent01564e642d12ac807cc093b6dbcb6a6675bcd16d (diff)
downloadnetsurf-b75313f591c11b2693895a5a367fff0e5dca1dd0.tar.gz
netsurf-b75313f591c11b2693895a5a367fff0e5dca1dd0.tar.bz2
[project @ 2005-01-16 00:14:31 by jmb]
Ensure style struct exists before attempting to free svn path=/import/netsurf/; revision=1452
-rw-r--r--render/box.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/render/box.c b/render/box.c
index 061c022b2..94c891629 100644
--- a/render/box.c
+++ b/render/box.c
@@ -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);
}