mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-01-26 23:29:23 -05:00
obs: Remove draw callbacks when closing various windows
Fixes a race condition during shutdown where the dialogs aren't deleted before another render attempt occurs, by which time the sources are already freed, resulting in a crash.
This commit is contained in:
@@ -205,6 +205,9 @@ void OBSBasicProperties::Cleanup()
|
||||
width());
|
||||
config_set_int(App()->GlobalConfig(), "PropertiesWindow", "cy",
|
||||
height());
|
||||
|
||||
obs_display_remove_draw_callback(preview->GetDisplay(),
|
||||
OBSBasicProperties::DrawPreview, this);
|
||||
}
|
||||
|
||||
void OBSBasicProperties::reject()
|
||||
|
||||
Reference in New Issue
Block a user