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

macosx: destroy lua dialogs correctly on close (close #8567)

parent 5a60b824
......@@ -497,10 +497,14 @@ static ExtensionsDialogProvider *_o_sharedInstance = nil;
assert(p_dialog);
VLCDialogWindow *dialogWindow = (VLCDialogWindow*) p_dialog->p_sys_intf;
if (!dialogWindow)
if (!dialogWindow) {
msg_Warn(VLCIntf, "dialog window not found");
return VLC_EGENERIC;
}
[VLCDialogWindow release];
[dialogWindow setDelegate:nil];
[dialogWindow close];
dialogWindow = nil;
p_dialog->p_sys_intf = NULL;
vlc_cond_signal(&p_dialog->cond);
......
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