[geos-commits] r2522 - branches/3.1/source/index/quadtree

svn_geos at osgeo.org svn_geos at osgeo.org
Wed May 27 14:28:23 EDT 2009


Author: pramsey
Date: 2009-05-27 14:28:23 -0400 (Wed, 27 May 2009)
New Revision: 2522

Modified:
   branches/3.1/source/index/quadtree/NodeBase.cpp
Log:
Port r2414 from trunk


Modified: branches/3.1/source/index/quadtree/NodeBase.cpp
===================================================================
--- branches/3.1/source/index/quadtree/NodeBase.cpp	2009-05-27 18:20:09 UTC (rev 2521)
+++ branches/3.1/source/index/quadtree/NodeBase.cpp	2009-05-27 18:28:23 UTC (rev 2522)
@@ -217,8 +217,11 @@
 			found = subnode[i]->remove(itemEnv, item);
 			if (found) {
 				// trim subtree if empty
-				if (subnode[i]->isPrunable())
-				subnode[i] = NULL;
+				if (subnode[i]->isPrunable()) 
+				{
+					delete subnode[i];
+					subnode[i] = NULL;
+				}
 				break;
 			}
 		}



More information about the geos-commits mailing list