Fixed memory leak in rest timer.