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
This commit is contained in:
parent
3631a5f90b
commit
b77ef177ed
2 changed files with 5 additions and 2 deletions
|
@ -72,7 +72,6 @@ bool Tooltip::tooltipModal(int x, int y) {
|
|||
_y = MIN<int16>(g_gui.getTopDialog()->_y + y + _ydelta, g_gui.getHeight() - _h - 3);
|
||||
|
||||
open();
|
||||
g_gui.runLoop();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue