Moved destoryObj to staticmethods.h