Code: Select all
--- ImageMagick-6.8.4-10/magick/xwindow.c.orig 2013-04-18 17:17:46.954436795 +0800
+++ ImageMagick-6.8.4-10/magick/xwindow.c 2013-04-18 17:19:50.580110884 +0800
@@ -5659,7 +5659,7 @@
}
#endif
if (window->ximage->data != (char *) NULL)
- free(window->ximage->data);
+ RelinquishMagickMemory(window->ximage->data);
window->ximage->data=(char *) NULL;
XDestroyImage(window->ximage);
window->ximage=(XImage *) NULL;
@@ -5713,7 +5713,7 @@
Free matte image.
*/
if (window->matte_image->data != (char *) NULL)
- free(window->matte_image->data);
+ RelinquishMagickMemory(window->matte_image->data);
window->matte_image->data=(char *) NULL;
XDestroyImage(window->matte_image);
window->matte_image=(XImage *) NULL;