1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-18 10:16:51 +00:00

(Fmac_coerce_ae_data) [MAC_OSX]: Fix memory leak.

This commit is contained in:
YAMAMOTO Mitsuharu 2005-12-22 08:16:53 +00:00
parent 5e6882903d
commit 26ab4ea8c4

View File

@ -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