From 37e6364bd0ea670cd1b0077f4ba1234f1d9c8bfd Mon Sep 17 00:00:00 2001 From: Tom Gilbert Date: Wed, 23 Aug 2000 00:20:24 +0000 Subject: [PATCH] Urm. oops. hehe :) Reversed that change, as it caused segfaults in free(). I can't grok this code, so I'll leave it to raster. Basically, if my code calls imlib_free_image_and_decache(), it doesn't free the image, and it leaks. The fix I applied made sure _Imlib_ConsumeImage was called, but this caused a segfault. *baffle SVN revision: 3239 --- src/api.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/api.c b/src/api.c index 03b1c35..f6d0a7a 100644 --- a/src/api.c +++ b/src/api.c @@ -492,7 +492,6 @@ imlib_free_image_and_decache(void) CHECK_PARAM_POINTER("imlib_free_image_and_decache", "image", ctxt_image); CAST_IMAGE(im, ctxt_image); SET_FLAG(im->flags, F_INVALID); - SET_FLAG(im->flags, F_UNCACHEABLE); __imlib_FreeImage(im); ctxt_image = NULL; }