Skip to content

Commit

Permalink
qt: fix crash on exit with CompositorWin7
Browse files Browse the repository at this point in the history
The window fed to `InterfaceWindowHandler`
needs to outlive the handler, because the
handler accesses the window during its
destruction.
  • Loading branch information
fuzun authored and robUx4 committed Oct 13, 2024
1 parent 1b1ca79 commit fc8ad06
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/gui/qt/maininterface/compositor_win7.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ void CompositorWin7::destroyMainInterface()

void CompositorWin7::unloadGUI()
{
m_interfaceWindowHandler.reset();
m_qmlView.reset();
commonGUIDestroy();
}
Expand Down

0 comments on commit fc8ad06

Please sign in to comment.