Commit bd0c4a17 authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx: fix memory leak

parent 41aa370b
...@@ -566,6 +566,7 @@ static ExtensionsDialogProvider *_o_sharedInstance = nil; ...@@ -566,6 +566,7 @@ static ExtensionsDialogProvider *_o_sharedInstance = nil;
**/ **/
- (void)manageDialog:(extension_dialog_t *)p_dialog - (void)manageDialog:(extension_dialog_t *)p_dialog
{ {
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
assert(p_dialog); assert(p_dialog);
ExtensionsManager *extMgr = [ExtensionsManager getInstance:p_intf]; ExtensionsManager *extMgr = [ExtensionsManager getInstance:p_intf];
assert(extMgr != NULL); assert(extMgr != NULL);
...@@ -574,6 +575,7 @@ static ExtensionsDialogProvider *_o_sharedInstance = nil; ...@@ -574,6 +575,7 @@ static ExtensionsDialogProvider *_o_sharedInstance = nil;
[self performSelectorOnMainThread:@selector(updateExtensionDialog:) [self performSelectorOnMainThread:@selector(updateExtensionDialog:)
withObject:o_value withObject:o_value
waitUntilDone:YES]; waitUntilDone:YES];
[pool release];
} }
@end @end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment