[vlc-commits] macosx: fix memory leak
Felix Paul Kühne
git at videolan.org
Sat May 11 16:14:40 CEST 2013
vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Sat May 11 16:14:30 2013 +0200| [bd0c4a170d6d567e9b496a2c8ffd03e0654a67e2] | committer: Felix Paul Kühne
macosx: fix memory leak
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=bd0c4a170d6d567e9b496a2c8ffd03e0654a67e2
---
modules/gui/macosx/ExtensionsDialogProvider.m | 2 ++
1 file changed, 2 insertions(+)
diff --git a/modules/gui/macosx/ExtensionsDialogProvider.m b/modules/gui/macosx/ExtensionsDialogProvider.m
index 9153e14..03f9cff 100644
--- a/modules/gui/macosx/ExtensionsDialogProvider.m
+++ b/modules/gui/macosx/ExtensionsDialogProvider.m
@@ -566,6 +566,7 @@ static ExtensionsDialogProvider *_o_sharedInstance = nil;
**/
- (void)manageDialog:(extension_dialog_t *)p_dialog
{
+ NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
assert(p_dialog);
ExtensionsManager *extMgr = [ExtensionsManager getInstance:p_intf];
assert(extMgr != NULL);
@@ -574,6 +575,7 @@ static ExtensionsDialogProvider *_o_sharedInstance = nil;
[self performSelectorOnMainThread:@selector(updateExtensionDialog:)
withObject:o_value
waitUntilDone:YES];
+ [pool release];
}
@end
More information about the vlc-commits
mailing list