Changed the deconstructor function signature