diff decoders/coreaudio.c @ 578:7ff36153215a

Fixed 48-byte memory leak.
author Eric Wing <ewing . public |-at-| gmail . com>
date Sat, 06 Nov 2010 00:27:45 -0700
parents af33b35a55c1
children 6927c489964c 33a77ceaed26
line wrap: on
line diff
--- a/decoders/coreaudio.c	Sat Oct 23 22:35:38 2010 -0700
+++ b/decoders/coreaudio.c	Sat Nov 06 00:27:45 2010 -0700
@@ -582,6 +582,7 @@
 	Sound_SampleInternal *internal = (Sound_SampleInternal *) sample->opaque;
 	CoreAudioFileContainer* core_audio_file_container = (CoreAudioFileContainer *) internal->decoder_private;
 
+	free(core_audio_file_container->outputFormat);
 	ExtAudioFileDispose(core_audio_file_container->extAudioFileRef);
 	AudioFileClose(*core_audio_file_container->audioFileID);
 	free(core_audio_file_container->audioFileID);