diff options
author | Willem Jan Palenstijn | 2013-04-15 21:46:09 +0200 |
---|---|---|
committer | Willem Jan Palenstijn | 2013-04-15 21:46:09 +0200 |
commit | 0250fd8ee16f60b7eebe624956516c51cb26b466 (patch) | |
tree | f8eecbebc394b6c5feafb2d7c15ad595b414527c /engines/sci/graphics | |
parent | 2c9fe1d2c6cdfa8752e2285a245d27fb6cf1e0e2 (diff) | |
download | scummvm-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.cpp | 2 |
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; } |