Skip to content
Snippets Groups Projects
Commit c5fdaef4 authored by Palana's avatar Palana
Browse files

Fix crash when closing the properties window on OSX

Followup to d5643230, it apparently
still crashed (on slower machines?) when closing the properties window
via mouse (by clicking the X button)
parent fad57537
No related branches found
No related tags found
No related merge requests found
......@@ -145,10 +145,11 @@ void OBSBasicProperties::closeEvent(QCloseEvent *event)
if (!event->isAccepted())
return;
// remove draw callback in case our drawable surfaces go away before
// the destructor gets called
// remove draw callback and release display in case our drawable
// surfaces go away before the destructor gets called
obs_display_remove_draw_callback(display,
OBSBasicProperties::DrawPreview, this);
display = nullptr;
config_set_int(App()->GlobalConfig(), "PropertiesWindow", "cx",
width());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment