Fix seg faul when closing app while the animation is taking place.
Memory was being leaked in Annotate Plugin.