The destructor is called when you delete the object or let it go out of scope, yes.