diff --git a/components/terrain/quadtreeworld.cpp b/components/terrain/quadtreeworld.cpp index 74e9fd5128..54c6c1470c 100644 --- a/components/terrain/quadtreeworld.cpp +++ b/components/terrain/quadtreeworld.cpp @@ -235,6 +235,11 @@ QuadTreeWorld::~QuadTreeWorld() mWorkItem->abort(); mWorkItem->waitTillDone(); } + + if (mRootNode && mRootNode->getViewDataMap()) + { + mRootNode->getViewDataMap()->clear(); + } }