diff --git a/src/glut/glx/glut_event.c b/src/glut/glx/glut_event.c index 0b65cf3039a..e453fe03893 100644 --- a/src/glut/glx/glut_event.c +++ b/src/glut/glx/glut_event.c @@ -172,8 +172,8 @@ handleTimeouts(void) GETTIMEOFDAY(&now); while (IS_AT_OR_AFTER(__glutTimerList->timeout, now)) { timer = __glutTimerList; - timer->func(timer->value); __glutTimerList = timer->next; + timer->func(timer->value); timer->next = freeTimerList; freeTimerList = timer; if (!__glutTimerList)