diff options
author | uruk | 2013-09-05 11:05:03 +0200 |
---|---|---|
committer | uruk | 2013-09-05 11:05:03 +0200 |
commit | 9740287721420c0ac2951124f9bfc76b8807113e (patch) | |
tree | 2d3d5d8f3b69afd496cd72a6f44378cdfdc29ffa | |
parent | 0c47dc858af4fda4f01939f67f6bb4fc746db674 (diff) | |
download | scummvm-rg350-9740287721420c0ac2951124f9bfc76b8807113e.tar.gz scummvm-rg350-9740287721420c0ac2951124f9bfc76b8807113e.tar.bz2 scummvm-rg350-9740287721420c0ac2951124f9bfc76b8807113e.zip |
AVALANCHE: Fix some memory leak problems.
-rw-r--r-- | engines/avalanche/dropdown2.cpp | 2 | ||||
-rw-r--r-- | engines/avalanche/scrolls2.cpp | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/engines/avalanche/dropdown2.cpp b/engines/avalanche/dropdown2.cpp index fefdaa13c9..a578288791 100644 --- a/engines/avalanche/dropdown2.cpp +++ b/engines/avalanche/dropdown2.cpp @@ -813,6 +813,8 @@ void Dropdown::updateMenu() { // TODO: Optimize it ASAP!!! It really needs it... } } + + backup.free(); } } // End of namespace Avalanche. diff --git a/engines/avalanche/scrolls2.cpp b/engines/avalanche/scrolls2.cpp index ba0a6c4972..3994f56569 100644 --- a/engines/avalanche/scrolls2.cpp +++ b/engines/avalanche/scrolls2.cpp @@ -142,6 +142,7 @@ void Scrolls::normscroll() { } _vm->_graphics->_surface.copyFrom(temp); + temp.free(); |