aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra
diff options
context:
space:
mode:
authorJohannes Schickel2009-05-17 23:15:26 +0000
committerJohannes Schickel2009-05-17 23:15:26 +0000
commitb48b4fd82d8c2e26872a9accf6b247220015c5fe (patch)
treee2c598649da3979cbab9c169e9c16d9dcd74dc28 /engines/kyra
parentffed114ccc19259ef53df2eff406c27dbd462b3b (diff)
downloadscummvm-rg350-b48b4fd82d8c2e26872a9accf6b247220015c5fe.tar.gz
scummvm-rg350-b48b4fd82d8c2e26872a9accf6b247220015c5fe.tar.bz2
scummvm-rg350-b48b4fd82d8c2e26872a9accf6b247220015c5fe.zip
Fix possible leak.
svn-id: r40667
Diffstat (limited to 'engines/kyra')
-rw-r--r--engines/kyra/lol.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/kyra/lol.cpp b/engines/kyra/lol.cpp
index 833da7764d..d185651ca1 100644
--- a/engines/kyra/lol.cpp
+++ b/engines/kyra/lol.cpp
@@ -612,6 +612,8 @@ void LoLEngine::preInit() {
char filename[32];
snprintf(filename, sizeof(filename), "LANDS.%s", _languageExt[_lang]);
_res->exists(filename, true);
+ if (_landsFile)
+ delete[] _landsFile;
_landsFile = _res->fileData(filename, 0);
loadItemIconShapes();
}