diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2011-03-12 17:47:46 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2011-03-12 17:47:46 +0000 |
commit | b175b0ddf82a349245fea6be78a0e25c3eb207eb (patch) | |
tree | 6d0b107d7eb31af0dbd9097e056ca1783cc54f74 /desktop/browser.c | |
parent | 74f108ee4dc5b915dfc8de0f88485245831ea7a9 (diff) | |
download | netsurf-b175b0ddf82a349245fea6be78a0e25c3eb207eb.tar.gz netsurf-b175b0ddf82a349245fea6be78a0e25c3eb207eb.tar.bz2 |
Fix stupid
svn path=/trunk/netsurf/; revision=11976
Diffstat (limited to 'desktop/browser.c')
-rw-r--r-- | desktop/browser.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/desktop/browser.c b/desktop/browser.c index bf2415a15..ecf43b61b 100644 --- a/desktop/browser.c +++ b/desktop/browser.c @@ -913,18 +913,17 @@ void browser_window_reload(struct browser_window *bw, bool all) if (all && content_get_type(bw->current_content) == CONTENT_HTML) { struct html_stylesheet *sheets; - struct content_html_object *objects; + struct content_html_object *object; unsigned int count; c = bw->current_content; /* invalidate objects */ - objects = html_get_objects(c, &count); + object = html_get_objects(c, &count); - for (i = 0; i != count; i++) { - if (objects[i].content != NULL) - content_invalidate_reuse_data( - objects[i].content); + for (; object != NULL; object = object->next) { + if (object->content != NULL) + content_invalidate_reuse_data(object->content); } /* invalidate stylesheets */ |