mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-02-01 06:10:42 +00:00
- added a missing nullptr check in Instruments::free_soundfonts()
This commit is contained in:
parent
13ef97c4ac
commit
73248e7f86
1 changed files with 2 additions and 1 deletions
|
@ -223,7 +223,8 @@ void Instruments::free_soundfonts()
|
||||||
SFInsts *sf, *next;
|
SFInsts *sf, *next;
|
||||||
|
|
||||||
for (sf = sfrecs; sf != NULL; sf = next) {
|
for (sf = sfrecs; sf != NULL; sf = next) {
|
||||||
tf_close(sf->tf);
|
if (sf->tf != nullptr) tf_close(sf->tf);
|
||||||
|
sf->tf = nullptr;
|
||||||
reuse_mblock(&sf->pool);
|
reuse_mblock(&sf->pool);
|
||||||
next = sf->next;
|
next = sf->next;
|
||||||
free(sf);
|
free(sf);
|
||||||
|
|
Loading…
Reference in a new issue