mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-10-07 21:37:30 -04: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:
1 parent
92af243a27
commit
ccf36b68fc
3 files changed
+9
No files matched your search
@@ -168,6 +168,9 @@ void OBSBasicInteraction::closeEvent(QCloseEvent *event)
|
||||
width());
|
||||
config_set_int(App()->GlobalConfig(), "InteractionWindow", "cy",
|
||||
height());
|
||||
|
||||
obs_display_remove_draw_callback(ui->preview->GetDisplay(),
|
||||
OBSBasicInteraction::DrawPreview, this);
|
||||
}
|
||||
|
||||
static int TranslateQtKeyboardEventModifiers(QInputEvent *event, bool mouseEvent) {
|
||||
|
||||
Reference in new issue
Block a user