From 60095bcbca5ea68b8ec88fefd92fba3cae30509a Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Fri, 11 Oct 2013 10:08:28 -0700 Subject: [PATCH] add debug on NodeList clear --- libraries/shared/src/NodeList.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/shared/src/NodeList.cpp b/libraries/shared/src/NodeList.cpp index d7f27ff9cd..d4aaa48aae 100644 --- a/libraries/shared/src/NodeList.cpp +++ b/libraries/shared/src/NodeList.cpp @@ -261,6 +261,8 @@ int NodeList::getNumAliveNodes() const { } void NodeList::clear() { + qDebug() << "Clearing the NodeList. Deleting all nodes in list.\n"; + // delete all of the nodes in the list, set the pointers back to NULL and the number of nodes to 0 for (int i = 0; i < _numNodes; i++) { Node** nodeBucket = _nodeBuckets[i / NODES_PER_BUCKET];