mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-02 16:31:01 +00:00
FREESCAPE: make sure _soundFx pointer array is properly deallocated
This commit is contained in:
parent
c58629e17d
commit
5e855ea2c2
@ -211,8 +211,10 @@ FreescapeEngine::~FreescapeEngine() {
|
||||
}
|
||||
|
||||
for (auto &it : _soundsFx) {
|
||||
free(it._value->data);
|
||||
free(it._value);
|
||||
if (it._value) {
|
||||
free(it._value->data);
|
||||
free(it._value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user