There was a class in which there was defined a function which deletes an object. In main function there was created an instance of class, which then is tried to delete using function declared inside class.
Anoniem
There is a possibility of fault if we declare an array of objects, and we try to delete only one object