mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 07:12:02 +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;
|
||||
|
||||
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);
|
||||
next = sf->next;
|
||||
free(sf);
|
||||
|
|
Loading…
Reference in a new issue