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
This commit is contained in:
John Mark Bell 2010-04-08 07:08:16 +00:00
parent 92bf8b1a7b
commit 4682f0ccd8

View File

@ -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;