This is from code I downloaded.
It has several classes with virtual functions but no virtual destructors. When I compile it, it does compile, but it gives a pageful of warning messages about "X has virtual functions but non-virtual destructor."
I guess the solution would be to add virtual destructors to each of those classes.
But why is the compiler griping about there being no virtual destructors? Isn't garbage clean up for classes supposed to be automatic in C++?