summaryrefslogtreecommitdiff
path: root/render
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2012-10-03 20:48:53 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2012-10-03 20:48:53 +0100
commitc82a5ad699ff26af409071d47624ff4ab116775e (patch)
tree6171387eff516999a1557eb9eb96f3faf3e87763 /render
parent464df9f3101e5a540fc91cdeca2b7fc0ceee870d (diff)
downloadnetsurf-c82a5ad699ff26af409071d47624ff4ab116775e.tar.gz
netsurf-c82a5ad699ff26af409071d47624ff4ab116775e.tar.bz2
Need to talloc_free things that are created with talloc.
Diffstat (limited to 'render')
-rw-r--r--render/html.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/render/html.c b/render/html.c
index b6aabb6a3..2a15c74d4 100644
--- a/render/html.c
+++ b/render/html.c
@@ -2406,17 +2406,17 @@ static void html_destroy_frameset(struct content_html_frames *frameset)
int i;
if (frameset->name) {
- free(frameset->name);
+ talloc_free(frameset->name);
frameset->name = NULL;
}
if (frameset->url) {
- free(frameset->url);
+ talloc_free(frameset->url);
frameset->url = NULL;
}
if (frameset->children) {
for (i = 0; i < (frameset->rows * frameset->cols); i++) {
if (frameset->children[i].name) {
- free(frameset->children[i].name);
+ talloc_free(frameset->children[i].name);
frameset->children[i].name = NULL;
}
if (frameset->children[i].url) {
@@ -2426,7 +2426,7 @@ static void html_destroy_frameset(struct content_html_frames *frameset)
if (frameset->children[i].children)
html_destroy_frameset(&frameset->children[i]);
}
- free(frameset->children);
+ talloc_free(frameset->children);
frameset->children = NULL;
}
}
@@ -2438,12 +2438,12 @@ static void html_destroy_iframe(struct content_html_iframe *iframe)
while ((iframe = next) != NULL) {
next = iframe->next;
if (iframe->name)
- free(iframe->name);
+ talloc_free(iframe->name);
if (iframe->url) {
nsurl_unref(iframe->url);
iframe->url = NULL;
}
- free(iframe);
+ talloc_free(iframe);
}
}
@@ -2503,7 +2503,7 @@ static void html_destroy(struct content *c)
/* Free frameset */
if (html->frameset != NULL) {
html_destroy_frameset(html->frameset);
- free(html->frameset);
+ talloc_free(html->frameset);
html->frameset = NULL;
}