aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoruruk2013-09-05 11:05:03 +0200
committeruruk2013-09-05 11:05:03 +0200
commit9740287721420c0ac2951124f9bfc76b8807113e (patch)
tree2d3d5d8f3b69afd496cd72a6f44378cdfdc29ffa
parent0c47dc858af4fda4f01939f67f6bb4fc746db674 (diff)
downloadscummvm-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.cpp2
-rw-r--r--engines/avalanche/scrolls2.cpp1
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();