Fixed memory leak caused by destroyObj not working