Fix destructor for tree Item, fixes clang build as well

This commit is contained in:
Miodrag Milanovic 2018-08-02 13:20:05 +02:00
parent 81ee55c7eb
commit ebdfd6ba5e

View File

@ -102,7 +102,7 @@ class Item
virtual bool canFetchMore() const { return false; }
virtual void fetchMore() {}
~Item()
virtual ~Item()
{
if (parent_ != nullptr) {
parent_->deleteChild(this);