changeset 66762:7929133d8782

[MAC_OSX] (image_load_quartz2d): Fix memory leak.
author YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
date Wed, 09 Nov 2005 08:07:18 +0000
parents ca19d1d30878
children f6840b4933ef
files src/image.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/image.c	Wed Nov 09 08:06:35 2005 +0000
+++ b/src/image.c	Wed Nov 09 08:07:18 2005 +0000
@@ -2549,6 +2549,7 @@
 
   if (!check_image_size (f, width, height))
     {
+      CGImageRelease (image);
       UNGCPRO;
       image_error ("Invalid image size", Qnil, Qnil);
       return 0;