Fix a memory leak

functionParser.h: add virtual destructor into abstract class.
A memory leak has been found by using PVS-Studio analyzer.

Analyzer warning: V599 The virtual destructor is not present, although the 'FunctionParser' class contains virtual functions.

Closes #3402
pull/3554/merge
Svyatoslav 2017-06-15 11:20:10 +03:00 committed by Don HO
parent 02bdd11700
commit 5861d416ea
1 changed files with 1 additions and 0 deletions

View File

@ -49,6 +49,7 @@ public:
virtual void parse(std::vector<foundInfo> & foundInfos, size_t begin, size_t end, ScintillaEditView **ppEditView, generic_string classStructName = TEXT("")) = 0;
void funcParse(std::vector<foundInfo> & foundInfos, size_t begin, size_t end, ScintillaEditView **ppEditView, generic_string classStructName = TEXT(""), const std::vector< std::pair<int, int> > * commentZones = NULL);
bool isInZones(int pos2Test, const std::vector< std::pair<int, int> > & zones);
virtual ~FunctionParser() {};
protected:
generic_string _id;
generic_string _displayName;