summaryrefslogtreecommitdiff
path: root/content
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2010-04-08 07:08:16 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2010-04-08 07:08:16 +0000
commit4682f0ccd866b86b430dbed8862ede91c1d1a061 (patch)
treeef7cc76eed924ac05aaadb1a4c66bdfd594104ad /content
parent92bf8b1a7b0c105fc8c5d9c18aaade73effc07b0 (diff)
downloadnetsurf-4682f0ccd866b86b430dbed8862ede91c1d1a061.tar.gz
netsurf-4682f0ccd866b86b430dbed8862ede91c1d1a061.tar.bz2
When we've snapshotted an object, make sure we add the *new* object into the list of uncacheable objects, and not the old one. Otherwise, our cache chains end up being corrupted.
svn path=/trunk/netsurf/; revision=10295
Diffstat (limited to 'content')
-rw-r--r--content/llcache.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/content/llcache.c b/content/llcache.c
index 7f44cc916..b9a19aabf 100644
--- a/content/llcache.c
+++ b/content/llcache.c
@@ -346,7 +346,8 @@ nserror llcache_handle_abort(llcache_handle *handle)
llcache_object_add_user(newobject, user);
/* Add new object to uncached list */
- llcache_object_add_to_list(object, &llcache_uncached_objects);
+ llcache_object_add_to_list(newobject,
+ &llcache_uncached_objects);
/* And use it from now on. */
object = newobject;