mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-12-03 09:32:02 +00:00
correctly fix use-after-free
This commit is contained in:
parent
a54dfa522a
commit
2623f67865
1 changed files with 1 additions and 1 deletions
|
@ -731,7 +731,7 @@ new_fluid_timer (int msec, fluid_timer_callback_t callback, void* data,
|
|||
else
|
||||
{
|
||||
fluid_timer_run (timer); /* Run directly, instead of as a separate thread */
|
||||
if(timer->auto_destroy)
|
||||
if(auto_destroy)
|
||||
{
|
||||
/* do NOT return freed memory */
|
||||
return NULL;
|
||||
|
|
Loading…
Reference in a new issue