Problem while running in another compiler

I creaed a dynamic object in dev c++ and according to the mentor it cannot be deleted using destructor but it is getting deleted by the destructor. Why so?

@Mudit809 can you mark the relevant timestamp in the video?