diff options
Diffstat (limited to 'Libraries/LibGUI')
-rw-r--r-- | Libraries/LibGUI/GApplication.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Libraries/LibGUI/GApplication.cpp b/Libraries/LibGUI/GApplication.cpp index d61a68b54d..eb7f930cd2 100644 --- a/Libraries/LibGUI/GApplication.cpp +++ b/Libraries/LibGUI/GApplication.cpp @@ -108,8 +108,11 @@ void GApplication::show_tooltip(const StringView& tooltip, const Point& screen_l void GApplication::hide_tooltip() { - if (m_tooltip_window) + if (m_tooltip_window) { m_tooltip_window->hide(); + delete m_tooltip_window; + m_tooltip_window = nullptr; + } } void GApplication::did_delete_last_window(Badge<GWindow>) |