]> git.sesse.net Git - vlc/commitdiff
macosx/framework: Fix three leaks in VLCStreamOutput.
authorPierre d'Herbemont <pdherbemont@free.fr>
Thu, 10 Dec 2009 10:16:29 +0000 (11:16 +0100)
committerPierre d'Herbemont <pdherbemont@free.fr>
Thu, 10 Dec 2009 10:16:29 +0000 (11:16 +0100)
Pointed-out-by Mike Schrag <mschrag@mdimension.com>.

projects/macosx/framework/Sources/VLCStreamOutput.m

index 01021ef9efd6f28388ca95d87c0df37875dc5191..ac1b46375edae0751fe030cd7c9cb88df34d7228 100644 (file)
@@ -82,7 +82,7 @@
                                             [NSDictionary dictionaryWithObjectsAndKeys:
                                                 @"mp4", @"muxer",
                                                 @"file", @"access",
-                                                [filePath copy], @"destination", nil
+                                                [[filePath copy] autorelease], @"destination", nil
                                             ], @"outputOptions",
                                             nil
                                             ]
                                             [NSDictionary dictionaryWithObjectsAndKeys:
                                                 @"mp4", @"muxer",
                                                 @"file", @"access",
-                                                [filePath copy], @"destination", nil
+                                                [[filePath copy] autorelease], @"destination", nil
                                             ], @"outputOptions",
                                             nil
                                             ]
                                             [NSDictionary dictionaryWithObjectsAndKeys:
                                                 @"ps", @"muxer",
                                                 @"file", @"access",
-                                                [filePath copy], @"destination", nil
+                                                [[filePath copy] autorelease], @"destination", nil
                                             ], @"outputOptions",
                                             nil
                                             ]
                                             [NSDictionary dictionaryWithObjectsAndKeys:
                                                 @"mpeg", @"muxer",
                                                 @"file", @"access",
-                                                [filePath copy], @"destination", nil
+                                                [[filePath copy] autorelease], @"destination", nil
                                             ], @"outputOptions",
                                             nil
                                             ]