diff options
author | Christopher Page | 2008-05-13 22:59:19 +0000 |
---|---|---|
committer | Christopher Page | 2008-05-13 22:59:19 +0000 |
commit | 7d98ed714be064b75308db21ce6d5191fd040c94 (patch) | |
tree | 0860eaa2befcae21b15070c886ed6cfa1f64edd8 /engines/agos | |
parent | 84a5b4e1e32b8d6f48121d1a63401fb0be0be474 (diff) | |
download | scummvm-rg350-7d98ed714be064b75308db21ce6d5191fd040c94.tar.gz scummvm-rg350-7d98ed714be064b75308db21ce6d5191fd040c94.tar.bz2 scummvm-rg350-7d98ed714be064b75308db21ce6d5191fd040c94.zip |
Fixed memory leak by deallocating memory used by window->iconPtr
svn-id: r32094
Diffstat (limited to 'engines/agos')
-rw-r--r-- | engines/agos/icons.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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) { |