forked from old/legacy-imlib2
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
This commit is contained in:
parent
5303cd3cf1
commit
37e6364bd0
|
@ -492,7 +492,6 @@ imlib_free_image_and_decache(void)
|
||||||
CHECK_PARAM_POINTER("imlib_free_image_and_decache", "image", ctxt_image);
|
CHECK_PARAM_POINTER("imlib_free_image_and_decache", "image", ctxt_image);
|
||||||
CAST_IMAGE(im, ctxt_image);
|
CAST_IMAGE(im, ctxt_image);
|
||||||
SET_FLAG(im->flags, F_INVALID);
|
SET_FLAG(im->flags, F_INVALID);
|
||||||
SET_FLAG(im->flags, F_UNCACHEABLE);
|
|
||||||
__imlib_FreeImage(im);
|
__imlib_FreeImage(im);
|
||||||
ctxt_image = NULL;
|
ctxt_image = NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue