diff options
author | Ole Loots <ole@monochrom.net> | 2012-12-18 01:28:22 +0100 |
---|---|---|
committer | Ole Loots <ole@monochrom.net> | 2012-12-18 01:28:22 +0100 |
commit | 3019368c93600a335445c09178c9554074c7f656 (patch) | |
tree | 872c3bcbba0b74584cda24bee36ffe784806108f /render/box.c | |
parent | c6a5109a95c1206ccf63d99316fa12b8c43bb7cf (diff) | |
parent | 0d803b6c0d252c3a1a9fa07e37d9a0b08ce567b8 (diff) | |
download | netsurf-3019368c93600a335445c09178c9554074c7f656.tar.gz netsurf-3019368c93600a335445c09178c9554074c7f656.tar.bz2 |
Merge branch 'master' into mono/removing-windom-dependency
Diffstat (limited to 'render/box.c')
-rw-r--r-- | render/box.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/render/box.c b/render/box.c index b9d059858..5dfada0c0 100644 --- a/render/box.c +++ b/render/box.c @@ -92,9 +92,14 @@ static int box_talloc_destructor(struct box *b) if (b->href != NULL) nsurl_unref(b->href); - if (b->id != NULL) + if (b->id != NULL) { lwc_string_unref(b->id); - + } + + if (b->node != NULL) { + dom_node_unref(b->node); + } + return 0; } @@ -172,6 +177,7 @@ struct box * box_create(css_select_results *styles, css_computed_style *style, box->object = NULL; box->object_params = NULL; box->iframe = NULL; + box->node = NULL; return box; } |