diff options
author | YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | 2005-12-22 08:16:53 +0000 |
---|---|---|
committer | YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | 2005-12-22 08:16:53 +0000 |
commit | 26ab4ea8c4225708d9108c1c1ea68ac7a2baf4f3 (patch) | |
tree | 6089d889822b1da8c8a7d49b06f5f37fae8d6943 /src/mac.c | |
parent | 5e6882903d77547289bddb7cac2983f08f62c080 (diff) | |
download | emacs-26ab4ea8c4225708d9108c1c1ea68ac7a2baf4f3.tar.gz |
(Fmac_coerce_ae_data) [MAC_OSX]: Fix memory leak.
Diffstat (limited to 'src/mac.c')
-rw-r--r-- | src/mac.c | 9 |
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 |