Commit 2192f658 authored by David's avatar David
Browse files

macosx: Do not try to release a nil object

parent 75634104
......@@ -426,8 +426,10 @@ static void extensionDialogCallback(extension_dialog_t *p_ext_dialog,
/* Explicitily release here, as we do not have transfered ownership to ARC,
* given that not in all cases we want to destroy the widget.
*/
CFRelease(widget->p_sys_intf);
widget->p_sys_intf = NULL;
if (widget->p_sys_intf) {
CFRelease(widget->p_sys_intf);
widget->p_sys_intf = NULL;
}
}
}
FOREACH_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