Replaced "free" with "delete" in deconstructor