Fixed mem leak in timer.