From 7d98ed714be064b75308db21ce6d5191fd040c94 Mon Sep 17 00:00:00 2001 From: Christopher Page Date: Tue, 13 May 2008 22:59:19 +0000 Subject: Fixed memory leak by deallocating memory used by window->iconPtr svn-id: r32094 --- engines/agos/icons.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'engines/agos') diff --git a/engines/agos/icons.cpp b/engines/agos/icons.cpp index 7875347d4a..0a1877cd9b 100644 --- a/engines/agos/icons.cpp +++ b/engines/agos/icons.cpp @@ -534,6 +534,8 @@ void AGOSEngine::drawIconArray(uint num, Item *itemRef, int line, int classMask) window->iconPtr->upArrow = _scrollUpHitArea; window->iconPtr->downArrow = _scrollDownHitArea; } + + free (window->iconPtr); } uint AGOSEngine_Feeble::setupIconHitArea(WindowBlock *window, uint num, uint x, uint y, Item *item_ptr) { -- cgit v1.2.3