changeset 67731:c1eaa6ea0192

(Fmac_coerce_ae_data) [MAC_OSX]: Fix memory leak.
author YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
date Thu, 22 Dec 2005 08:16:53 +0000
parents 1ee1a77d8b03
children caacdc1a999e
files src/mac.c
diffstat 1 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/mac.c	Thu Dec 22 07:41:04 2005 +0000
+++ b/src/mac.c	Thu Dec 22 08:16:53 2005 +0000
@@ -4114,9 +4114,12 @@
 	  CFRelease (url);
 	}
       if (data)
-	err = AECoercePtr (src_desc_type, CFDataGetBytePtr (data),
-			   CFDataGetLength (data),
-			   dst_desc_type, &dst_desc);
+	{
+	  err = AECoercePtr (src_desc_type, CFDataGetBytePtr (data),
+			     CFDataGetLength (data),
+			     dst_desc_type, &dst_desc);
+	  CFRelease (data);
+	}
       else
 	err = memFullErr;
 #else