TreeInfo: Make ~ErrorHandler() virtual

ErrorHandler has a pure virtual function, so we also make its
destructor virtual, to assure any children classes will get
properly destructed.

Test: TreeHugger
Change-Id: Ie072511b450d507f8764b0888d232ffac8f6d6f5
This commit is contained in:
Greg Kaiser
2018-08-23 17:02:39 -07:00
parent a95435b836
commit 174b50fa50

View File

@@ -39,7 +39,7 @@ public:
virtual void onError(const std::string& message) = 0;
protected:
~ErrorHandler() {}
virtual ~ErrorHandler() {}
};
class TreeObserver {