comparison 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
comparison
equal deleted inserted replaced
577:af33b35a55c1 578:7ff36153215a
580 static void CoreAudio_close(Sound_Sample *sample) 580 static void CoreAudio_close(Sound_Sample *sample)
581 { 581 {
582 Sound_SampleInternal *internal = (Sound_SampleInternal *) sample->opaque; 582 Sound_SampleInternal *internal = (Sound_SampleInternal *) sample->opaque;
583 CoreAudioFileContainer* core_audio_file_container = (CoreAudioFileContainer *) internal->decoder_private; 583 CoreAudioFileContainer* core_audio_file_container = (CoreAudioFileContainer *) internal->decoder_private;
584 584
585 free(core_audio_file_container->outputFormat);
585 ExtAudioFileDispose(core_audio_file_container->extAudioFileRef); 586 ExtAudioFileDispose(core_audio_file_container->extAudioFileRef);
586 AudioFileClose(*core_audio_file_container->audioFileID); 587 AudioFileClose(*core_audio_file_container->audioFileID);
587 free(core_audio_file_container->audioFileID); 588 free(core_audio_file_container->audioFileID);
588 free(core_audio_file_container); 589 free(core_audio_file_container);
589 590