Automatically delete pointers when savestating.