Commit 6c62d747 authored by Felix Paul Kühne's avatar Felix Paul Kühne
Browse files

macosx: fixed crash when terminating while the progress panel is displayed

parent 04c94d37
...@@ -478,7 +478,10 @@ void updateProgressPanel (void *priv, const char *text, float value) ...@@ -478,7 +478,10 @@ void updateProgressPanel (void *priv, const char *text, float value)
void destroyProgressPanel (void *priv) void destroyProgressPanel (void *priv)
{ {
NSAutoreleasePool *o_pool = [[NSAutoreleasePool alloc] init]; NSAutoreleasePool *o_pool = [[NSAutoreleasePool alloc] init];
if ([[NSApplication sharedApplication] isRunning])
[[[VLCMain sharedInstance] coreDialogProvider] performSelectorOnMainThread:@selector(destroyProgressPanel) withObject:nil waitUntilDone:YES]; [[[VLCMain sharedInstance] coreDialogProvider] performSelectorOnMainThread:@selector(destroyProgressPanel) withObject:nil waitUntilDone:YES];
[o_pool release]; [o_pool release];
} }
......
Supports Markdown
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