Skip to content

Commit

Permalink
Fixed crash on exit when tool tip was visible (fixes #242)
Browse files Browse the repository at this point in the history
  • Loading branch information
texus committed Aug 29, 2024
1 parent 83211ad commit 1b09ca6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
TGUI 1.6 (TBD)
--------------

Fixed crash on exit when tool tip was visible


TGUI 1.5 (25 August 2024)
-------------------------

Expand Down
1 change: 1 addition & 0 deletions src/Backend/Window/BackendGui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ namespace tgui
// We first explictly destroy the widgets before destroying the container, to handle the case where an onUnfocus signal
// is still being triggered that attempts to access the gui (and it's container).
m_container->removeAllWidgets();
m_visibleToolTip = nullptr;
m_container = nullptr;

if (isBackendSet())
Expand Down

0 comments on commit 1b09ca6

Please sign in to comment.