query: what is wrong with below virtual destructor program
positive_passages.docid: 34560
positive_passages.text: Calling delete on variable allocated on the stack
negative_passages.docid: 82264
negative_passages.text: C++ object size with virtual methods
negative_passages.docid: 91850
negative_passages.text: Will an 'empty' constructor or destructor do the same thing as the generated one?
negative_passages.docid: 147050
negative_passages.text: How to avoid memory leaks when using a vector of pointers to dynamically allocated objects in C++?
negative_passages.docid: 64396
negative_passages.text: throwing exceptions out of a destructor
negative_passages.docid: 111465
negative_passages.text: Why aren't copy constructors "chained" like default constructors and destructors?
negative_passages.docid: 54530
negative_passages.text: Are inline virtual functions really a non-sense?
negative_passages.docid: 126788
negative_passages.text: Why delete is needed in the definition of the copy-assignment operator?
negative_passages.docid: 129212
negative_passages.text: When do I need to declare my own destructor?
negative_passages.docid: 143838
negative_passages.text: Are destructors overloadable?
negative_passages.docid: 134746
negative_passages.text: Where do "pure virtual function call" crashes come from?
negative_passages.docid: 79888
negative_passages.text: Why should I declare a virtual destructor for an abstract class in C++?
negative_passages.docid: 23738
negative_passages.text: Is "delete this" allowed in C++?
negative_passages.docid: 120584
negative_passages.text: Pointers in c++ after delete
negative_passages.docid: 153466
negative_passages.text: Implementing pure virtual functions with multiple inheritance
negative_passages.docid: 67868
negative_passages.text: What is the use of having destructor as private?
negative_passages.docid: 55040
negative_passages.text: Why Session object destruction failed