summaryrefslogtreecommitdiff
path: root/render
diff options
context:
space:
mode:
authorJames Bursa <james@netsurf-browser.org>2004-06-21 15:09:59 +0000
committerJames Bursa <james@netsurf-browser.org>2004-06-21 15:09:59 +0000
commitb4723c1d05819d4e47fc59254f5ad8c9d6d62db3 (patch)
tree4242fc6b5d7c9f3649140f0e86b1b39b338e9459 /render
parent6e5d77e894d9b76d9bd9ed19b6d506dc8f26d454 (diff)
downloadnetsurf-b4723c1d05819d4e47fc59254f5ad8c9d6d62db3.tar.gz
netsurf-b4723c1d05819d4e47fc59254f5ad8c9d6d62db3.tar.bz2
[project @ 2004-06-21 15:09:58 by bursa]
Merge memory cache into content module. svn path=/import/netsurf/; revision=986
Diffstat (limited to 'render')
-rw-r--r--render/html.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/render/html.c b/render/html.c
index a96869313..6a63bfdda 100644
--- a/render/html.c
+++ b/render/html.c
@@ -840,14 +840,13 @@ void html_destroy(struct content *c)
/* Free stylesheets */
if (c->data.html.stylesheet_count) {
- content_remove_user(c->data.html.stylesheet_content[0],
- html_convert_css_callback, c, 0);
- if (c->data.html.stylesheet_content[1])
- content_destroy(c->data.html.stylesheet_content[1]);
- for (i = 2; i != c->data.html.stylesheet_count; i++)
+ for (i = 0; i != c->data.html.stylesheet_count; i++) {
if (c->data.html.stylesheet_content[i])
- content_remove_user(c->data.html.stylesheet_content[i],
- html_convert_css_callback, c, (void*)i);
+ content_remove_user(c->data.html.
+ stylesheet_content[i],
+ html_convert_css_callback,
+ c, (void *) i);
+ }
}
free(c->data.html.stylesheet_content);
free(c->data.html.style);