mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-04 17:29:11 +00:00
Yet more proper memory free'ing
svn-id: r14411
This commit is contained in:
parent
e20d53a869
commit
2ed2770eed
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user