correctly fix use-after-free

This commit is contained in:
derselbst 2017-10-22 15:00:51 +02:00
parent a54dfa522a
commit 2623f67865

View file

@ -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;