Overriding dealloc method.