diff options
author | Johannes Schickel | 2009-05-17 23:15:26 +0000 |
---|---|---|
committer | Johannes Schickel | 2009-05-17 23:15:26 +0000 |
commit | b48b4fd82d8c2e26872a9accf6b247220015c5fe (patch) | |
tree | e2c598649da3979cbab9c169e9c16d9dcd74dc28 /engines/kyra | |
parent | ffed114ccc19259ef53df2eff406c27dbd462b3b (diff) | |
download | scummvm-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.cpp | 2 |
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(); } |