fix memory leak
Merge pull request #1 from rockdai/master

fix memory leak for timeline