From 9740287721420c0ac2951124f9bfc76b8807113e Mon Sep 17 00:00:00 2001 From: uruk Date: Thu, 5 Sep 2013 11:05:03 +0200 Subject: AVALANCHE: Fix some memory leak problems. --- engines/avalanche/dropdown2.cpp | 2 ++ engines/avalanche/scrolls2.cpp | 1 + 2 files changed, 3 insertions(+) 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(); -- cgit v1.2.3