diff --git a/hoot-core/src/main/cpp/hoot/core/index/KnnWayIterator.h b/hoot-core/src/main/cpp/hoot/core/index/KnnWayIterator.h
index 41662c1..ad099cf 100644
--- a/hoot-core/src/main/cpp/hoot/core/index/KnnWayIterator.h
+++ b/hoot-core/src/main/cpp/hoot/core/index/KnnWayIterator.h
@@ -50,6 +50,7 @@ public:
KnnWayIterator(const OsmMap& map, ConstWayPtr way, const Tgs::RStarTree* tree,
const std::vector<long>& treeIdToWid, bool addError = false);
+ virtual ~KnnWayIterator() = default;
long getWayId() const { return _treeIdToWid[getId()]; }