Merge pull request #14 from YosysHQ/fix-destructor

Fix destructor for tree Item, fixes clang build as well
This commit is contained in:
David Shah 2018-08-02 13:24:32 +02:00 committed by GitHub
commit fc882d73d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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