aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/graphics
diff options
context:
space:
mode:
authorWillem Jan Palenstijn2013-04-15 21:46:09 +0200
committerWillem Jan Palenstijn2013-04-15 21:46:09 +0200
commit0250fd8ee16f60b7eebe624956516c51cb26b466 (patch)
treef8eecbebc394b6c5feafb2d7c15ad595b414527c /engines/sci/graphics
parent2c9fe1d2c6cdfa8752e2285a245d27fb6cf1e0e2 (diff)
downloadscummvm-rg350-0250fd8ee16f60b7eebe624956516c51cb26b466.tar.gz
scummvm-rg350-0250fd8ee16f60b7eebe624956516c51cb26b466.tar.bz2
scummvm-rg350-0250fd8ee16f60b7eebe624956516c51cb26b466.zip
SCI: Fix hunk entry leak
Diffstat (limited to 'engines/sci/graphics')
-rw-r--r--engines/sci/graphics/ports.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/graphics/ports.cpp b/engines/sci/graphics/ports.cpp
index 8acdeed763..527e2ae973 100644
--- a/engines/sci/graphics/ports.cpp
+++ b/engines/sci/graphics/ports.cpp
@@ -537,7 +537,7 @@ void GfxPorts::freeWindow(Window *pWnd) {
if (!pWnd->hSaved1.isNull())
_segMan->freeHunkEntry(pWnd->hSaved1);
if (!pWnd->hSaved2.isNull())
- _segMan->freeHunkEntry(pWnd->hSaved1);
+ _segMan->freeHunkEntry(pWnd->hSaved2);
_windowsById[pWnd->id] = NULL;
delete pWnd;
}