summaryrefslogtreecommitdiff
path: root/src/mac.c
diff options
context:
space:
mode:
authorYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>2005-12-22 08:16:53 +0000
committerYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>2005-12-22 08:16:53 +0000
commit26ab4ea8c4225708d9108c1c1ea68ac7a2baf4f3 (patch)
tree6089d889822b1da8c8a7d49b06f5f37fae8d6943 /src/mac.c
parent5e6882903d77547289bddb7cac2983f08f62c080 (diff)
downloademacs-26ab4ea8c4225708d9108c1c1ea68ac7a2baf4f3.tar.gz
(Fmac_coerce_ae_data) [MAC_OSX]: Fix memory leak.
Diffstat (limited to 'src/mac.c')
-rw-r--r--src/mac.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/mac.c b/src/mac.c
index d81c6d6a0ae..0e2eac877da 100644
--- a/src/mac.c
+++ b/src/mac.c
@@ -4114,9 +4114,12 @@ Each type should be a string of length 4 or the symbol
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