Yet more proper memory free'ing

svn-id: r14411
This commit is contained in:
Eugene Sandulenko 2004-08-01 07:37:42 +00:00
parent e20d53a869
commit 2ed2770eed

View File

@ -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;