mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-11-10 15:01:40 +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
|
else
|
||||||
{
|
{
|
||||||
fluid_timer_run (timer); /* Run directly, instead of as a separate thread */
|
fluid_timer_run (timer); /* Run directly, instead of as a separate thread */
|
||||||
if(timer->auto_destroy)
|
if(auto_destroy)
|
||||||
{
|
{
|
||||||
/* do NOT return freed memory */
|
/* do NOT return freed memory */
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Reference in a new issue