diff options
author | Eugene Sandulenko | 2004-08-01 07:37:42 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2004-08-01 07:37:42 +0000 |
commit | 2ed2770eed6c9b60966d31f1c8151c283b881fd9 (patch) | |
tree | e222a1c55c96fdf5551988a60b8a52bc048a4d17 /saga | |
parent | e20d53a8692cde23f9057088bb9a3a2d7b986f1e (diff) | |
download | scummvm-rg350-2ed2770eed6c9b60966d31f1c8151c283b881fd9.tar.gz scummvm-rg350-2ed2770eed6c9b60966d31f1c8151c283b881fd9.tar.bz2 scummvm-rg350-2ed2770eed6c9b60966d31f1c8151c283b881fd9.zip |
Yet more proper memory free'ing
svn-id: r14411
Diffstat (limited to 'saga')
-rw-r--r-- | saga/actionmap.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/saga/actionmap.cpp b/saga/actionmap.cpp index e86a5b6f3d..b80c898d80 100644 --- a/saga/actionmap.cpp +++ b/saga/actionmap.cpp @@ -123,10 +123,12 @@ int ActionMap::freeMap(void) { for (i = 0; i < _n_exits; i++) { exmap_entry = &_exits_tbl[i]; - free(exmap_entry->pt_tbl); + if (exmap_entry->pt_tbl) + free(exmap_entry->pt_tbl); } - free(_exits_tbl); + if (_exits_tbl) + free(_exits_tbl); _exits_loaded = 0; _exits_tbl = NULL; |