This is obviously only a problem when the destructors (or other "cleanup methods" such as Close(), Destroy() or whatever these may be called) do something like delete files, write data to registry or close a database connection.
--
Mats
Printable View
But it also gives another meaning to undefined. Just because it works doesn't mean it's right and bug free. The behaviour can be undefined.
Therefore it is better to always ensure destructors run. It's rooted deep into the language.
However I'm fairly sure that the OP wouldn't have had to worry about any of this, not anytime soon anyways, lol.
True true, but as they say, it's better early than late. It's better to know good practice and start using it rather than later.