Fixed #2681 where the Pointer object leaked memory after chart.destroy.