Commit 77c6906f authored by Felix Paul Kühne's avatar Felix Paul Kühne

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

(cherry picked from commit 6c62d7475dce83cbc116f4bcc470ee4f9078e6c1)

Conflicts:
	modules/gui/macosx/intf.m
parent f1bd800e
...@@ -449,7 +449,10 @@ void updateProgressPanel (void *priv, const char *text, float value) ...@@ -449,7 +449,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];
[[[VLCMain sharedInstance] coreDialogProvider] destroyProgressPanel];
if ([[NSApplication sharedApplication] isRunning])
[[[VLCMain sharedInstance] coreDialogProvider] performSelectorOnMainThread:@selector(destroyProgressPanel) withObject:nil waitUntilDone:YES];
[o_pool release]; [o_pool release];
} }
......
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