summaryrefslogtreecommitdiff
path: root/render/box_normalise.c
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@netsurf-browser.org>2010-04-27 21:38:41 +0000
committerDaniel Silverstone <dsilvers@netsurf-browser.org>2010-04-27 21:38:41 +0000
commit30e0cfe7a97a6f36acadf29f8b32a3f4efd85770 (patch)
treef89c698be1ad14b2c439ffd4fbe938ffc902bf36 /render/box_normalise.c
parent485ac0dad7d12949b7b2ad4cd671909d9b553968 (diff)
downloadnetsurf-30e0cfe7a97a6f36acadf29f8b32a3f4efd85770.tar.gz
netsurf-30e0cfe7a97a6f36acadf29f8b32a3f4efd85770.tar.bz2
First step to fixing memory leaks -- Box model no longer leaks computed styles
svn path=/trunk/netsurf/; revision=10500
Diffstat (limited to 'render/box_normalise.c')
-rw-r--r--render/box_normalise.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/render/box_normalise.c b/render/box_normalise.c
index fc563e743..8af97535a 100644
--- a/render/box_normalise.c
+++ b/render/box_normalise.c
@@ -166,7 +166,7 @@ bool box_normalise_block(struct box *block, struct content *c)
if (style == NULL)
return false;
- table = box_create(style, block->href, block->target,
+ table = box_create(style, true, block->href, block->target,
NULL, NULL, c);
if (table == NULL) {
css_computed_style_destroy(style);
@@ -262,7 +262,7 @@ bool box_normalise_table(struct box *table, struct content * c)
return false;
}
- row_group = box_create(style, table->href,
+ row_group = box_create(style, true, table->href,
table->target, NULL, NULL, c);
if (row_group == NULL) {
css_computed_style_destroy(style);
@@ -341,7 +341,7 @@ bool box_normalise_table(struct box *table, struct content * c)
return false;
}
- row_group = box_create(style, table->href,
+ row_group = box_create(style, true, table->href,
table->target, NULL, NULL, c);
if (row_group == NULL) {
css_computed_style_destroy(style);
@@ -358,7 +358,7 @@ bool box_normalise_table(struct box *table, struct content * c)
return false;
}
- row = box_create(style, row_group->href,
+ row = box_create(style, true, row_group->href,
row_group->target, NULL, NULL, c);
if (row == NULL) {
css_computed_style_destroy(style);
@@ -467,7 +467,7 @@ bool box_normalise_table_spans(struct box *table, struct span_info *spans,
if (style == NULL)
return false;
- cell = box_create(style,
+ cell = box_create(style, true,
table_row->href,
table_row->target,
NULL, NULL, c);
@@ -568,7 +568,7 @@ bool box_normalise_table_row_group(struct box *row_group,
if (style == NULL)
return false;
- row = box_create(style, row_group->href,
+ row = box_create(style, true, row_group->href,
row_group->target, NULL, NULL, c);
if (row == NULL) {
css_computed_style_destroy(style);
@@ -637,7 +637,7 @@ bool box_normalise_table_row_group(struct box *row_group,
return false;
}
- row = box_create(style, row_group->href,
+ row = box_create(style, true, row_group->href,
row_group->target, NULL, NULL, c);
if (row == NULL) {
css_computed_style_destroy(style);
@@ -695,7 +695,7 @@ bool box_normalise_table_row(struct box *row,
if (style == NULL)
return false;
- cell = box_create(style, row->href, row->target,
+ cell = box_create(style, true, row->href, row->target,
NULL, NULL, c);
if (cell == NULL) {
css_computed_style_destroy(style);