diff --git a/src/qt/window.cpp b/src/qt/window.cpp index 9020a7fc1c..d07dfcc221 100644 --- a/src/qt/window.cpp +++ b/src/qt/window.cpp @@ -309,6 +309,9 @@ wxWindowQt::~wxWindowQt() DestroyChildren(); // This also destroys scrollbars + if (m_qtWindow) + QtStoreWindowPointer( GetHandle(), NULL ); + #if wxUSE_DRAG_AND_DROP SetDropTarget(NULL); #endif