From b77ef177ed6ccfb685ca88e7de568f9ff287d0d2 Mon Sep 17 00:00:00 2001 From: Yotam Barnoy Date: Thu, 18 Nov 2010 07:17:53 +0000 Subject: GUI: changed tooltip to be deleted when inactive Before, it could be instantiated after an engine loaded and then was never deleted, causing memory fragmentation. Also removed inner tooltip call to the GuiManager runloop, which makes the logic simpler since the tooltip is a bit of a hack. I had to remove it because deleting _tooltip in the inner loop (called from tooltip itself) is trouble. svn-id: r54311 --- gui/Tooltip.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'gui/Tooltip.cpp') diff --git a/gui/Tooltip.cpp b/gui/Tooltip.cpp index 067afb8246..457f53d011 100644 --- a/gui/Tooltip.cpp +++ b/gui/Tooltip.cpp @@ -72,7 +72,6 @@ bool Tooltip::tooltipModal(int x, int y) { _y = MIN(g_gui.getTopDialog()->_y + y + _ydelta, g_gui.getHeight() - _h - 3); open(); - g_gui.runLoop(); return true; } -- cgit v1.2.3