From 5798532fed4b679b88ad398663d6bc21e8f96820 Mon Sep 17 00:00:00 2001 From: vspader Date: Sun, 4 Mar 2007 04:37:36 +0000 Subject: [PATCH] Might as well close the source if you aren't going to use it. --- Plugins/CoreAudio/CoreAudioDecoder.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Plugins/CoreAudio/CoreAudioDecoder.m b/Plugins/CoreAudio/CoreAudioDecoder.m index 6446b8669..de2c20528 100644 --- a/Plugins/CoreAudio/CoreAudioDecoder.m +++ b/Plugins/CoreAudio/CoreAudioDecoder.m @@ -46,6 +46,8 @@ NSURL *url = [source url]; if (![[url scheme] isEqualToString:@"file"]) return NO; + + [source close]; //There's no room for your kind around here! // Open the input file err = FSPathMakeRef((const UInt8 *)[[url path] UTF8String], &ref, NULL);