summaryrefslogtreecommitdiff
path: root/content
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2008-02-27 18:38:41 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2008-02-27 18:38:41 +0000
commit89793c21712fe11a1c52452911f12ac38e275d28 (patch)
treed054315208d4512c64c71e30e72079e5d8984a9e /content
parent748937547a27e58979c2c8385dd9aec5e62aa9da (diff)
downloadnetsurf-89793c21712fe11a1c52452911f12ac38e275d28.tar.gz
netsurf-89793c21712fe11a1c52452911f12ac38e275d28.tar.bz2
Make content_reset actually do what it's meant to (i.e. reset the appropriate members)
Fix up CONTENT_MSG_REFRESH scheduled events to gracefully the refresh URL disappearing from under them. svn path=/trunk/netsurf/; revision=3870
Diffstat (limited to 'content')
-rw-r--r--content/content.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/content/content.c b/content/content.c
index 9310eb180..19bb45b0a 100644
--- a/content/content.c
+++ b/content/content.c
@@ -931,6 +931,13 @@ void content_reset(struct content *c)
c->size = 0;
talloc_free(c->mime_type);
c->mime_type = 0;
+ talloc_free(c->refresh);
+ c->refresh = 0;
+ talloc_free(c->title);
+ c->title = 0;
+ talloc_free(c->source_data);
+ c->source_data = 0;
+ c->source_size = c->source_allocated = 0;
}