summaryrefslogtreecommitdiff
path: root/content
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2010-12-13 08:24:04 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2010-12-13 08:24:04 +0000
commit991472d26431caa424a4e547f508ceadeae4734e (patch)
tree102c8d0a68dc0cfc975e6b57dbdcea0be8242349 /content
parentf40da966ad9ee252bb2ce7aeea35bd36e95084f9 (diff)
downloadnetsurf-991472d26431caa424a4e547f508ceadeae4734e.tar.gz
netsurf-991472d26431caa424a4e547f508ceadeae4734e.tar.bz2
Remove bogus assertions
svn path=/trunk/netsurf/; revision=11048
Diffstat (limited to 'content')
-rw-r--r--content/llcache.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/content/llcache.c b/content/llcache.c
index 21dcd9f38..f90cf9f2b 100644
--- a/content/llcache.c
+++ b/content/llcache.c
@@ -564,10 +564,13 @@ nserror llcache_object_user_destroy(llcache_object_user *user)
#ifdef LLCACHE_TRACE
LOG(("Destroyed user %p", user));
#endif
-
- assert(user->next == NULL);
- assert(user->prev == NULL);
-
+
+ /* We can't assert that user->next/prev are NULL here
+ * as llcache_object_remove_user can not invalidate
+ * them. However, we are only ever called as the result
+ * of the client releasing a handle, so the precondition
+ * holds. */
+
free(user);
return NSERROR_OK;