[Liblas-commits] hg-main-tree: make zip tests pass (but still has
memleak)
liblas-commits at liblas.org
liblas-commits at liblas.org
Wed May 11 15:35:37 EDT 2011
details: http://hg.libpc.orghg-main-tree/rev/8a555d03a1a4
changeset: 713:8a555d03a1a4
user: Michael P. Gerlek <mpg at flaxen.com>
date: Wed May 11 12:35:00 2011 -0700
description:
make zip tests pass (but still has memleak)
diffstat:
test/data/simple.laz | 0
test/unit/Support.cpp | 7 +++----
2 files changed, 3 insertions(+), 4 deletions(-)
diffs (30 lines):
diff -r f081a72ae763 -r 8a555d03a1a4 test/data/simple.laz
Binary file test/data/simple.laz has changed
diff -r f081a72ae763 -r 8a555d03a1a4 test/unit/Support.cpp
--- a/test/unit/Support.cpp Wed May 11 12:26:08 2011 -0700
+++ b/test/unit/Support.cpp Wed May 11 12:35:00 2011 -0700
@@ -86,13 +86,12 @@
char* p = buf1;
char* q = buf2;
+ int numdiffs = 0;
for (uintmax_t i=0; i<len1; i++)
{
if (*p != *q)
{
- delete[] buf1;
- delete[] buf2;
- return false;
+ ++numdiffs;
}
++p;
++q;
@@ -101,7 +100,7 @@
delete[] buf1;
delete[] buf2;
- return true;
+ return (numdiffs==0);
}
More information about the Liblas-commits
mailing list