From 001050aea2ad226b2a8dad96d3cd3741face6bde Mon Sep 17 00:00:00 2001 From: gambas Date: Mon, 15 Mar 2021 01:00:22 +0100 Subject: [PATCH] Don't leak a control if we quit between a MouseDown and a MouseUp event. [GB.QT4] * BUG: Don't leak a control if we quit between a MouseDown and a MouseUp event. [GB.QT5] * BUG: Don't leak a control if we quit between a MouseDown and a MouseUp event. --- gb.qt4/src/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/gb.qt4/src/main.cpp b/gb.qt4/src/main.cpp index 4fcb1739f..8474bfb05 100644 --- a/gb.qt4/src/main.cpp +++ b/gb.qt4/src/main.cpp @@ -1008,6 +1008,7 @@ static void hook_quit() CWINDOW_close_all(true); CWINDOW_delete_all(true); + CMOUSE_set_control(NULL); qApp->sendPostedEvents(); //processEvents(QEventLoop::ExcludeUserInputEvents | QEventLoop::DeferredDeletion, 0); qApp->sendPostedEvents(0, QEvent::DeferredDelete);