[Liblas-commits] hg: Cleanup after iterator operation.

liblas-commits at liblas.org liblas-commits at liblas.org
Tue Oct 19 17:00:12 EDT 2010


changeset a3489d26c8a3 in /Volumes/Data/www/liblas.org/hg
details: http://hg.liblas.orghg?cmd=changeset;node=a3489d26c8a3
summary: Cleanup after iterator operation.

diffstat:

 apps/lasindex_test.cpp |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r 2909b0841902 -r a3489d26c8a3 apps/lasindex_test.cpp
--- a/apps/lasindex_test.cpp	Tue Oct 19 14:52:24 2010 -0600
+++ b/apps/lasindex_test.cpp	Tue Oct 19 14:59:45 2010 -0600
@@ -476,7 +476,7 @@
 										// two iterators with different filter bounds
 										IndexIterator *indexIt = index.Filter(ParamSrc, chunkSize);
 										IndexIterator *indexIt2 = index.Filter(ParamSrc2, chunkSize);
-										if (indexIt)
+										if (indexIt && indexIt2)
 										{
 											for (boost::uint32_t step = 0; step < 3; ++step)
 											{
@@ -532,6 +532,8 @@
 										} // if
 										else
 											IndexFilterInitError(debugger);
+										delete indexIt;
+										delete indexIt2;
 									}
 									else
 										IndexFilterInitError(debugger);


More information about the Liblas-commits mailing list