From: YAMAMOTO Mitsuharu Date: Wed, 9 Nov 2005 08:07:18 +0000 (+0000) Subject: [MAC_OSX] (image_load_quartz2d): Fix memory leak. X-Git-Tag: emacs-pretest-22.0.90~6000 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=54eaa188d395edadc69744bf58cce7ba92c92af3;p=emacs.git [MAC_OSX] (image_load_quartz2d): Fix memory leak. --- diff --git a/src/image.c b/src/image.c index fb3cdecaa54..9dce2bf1cd1 100644 --- a/src/image.c +++ b/src/image.c @@ -2549,6 +2549,7 @@ image_load_quartz2d (f, img, png_p) if (!check_image_size (f, width, height)) { + CGImageRelease (image); UNGCPRO; image_error ("Invalid image size", Qnil, Qnil); return 0;