From 89793c21712fe11a1c52452911f12ac38e275d28 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Wed, 27 Feb 2008 18:38:41 +0000 Subject: 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 --- content/content.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'content') 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; } -- cgit v1.2.3