[Liblas-commits] laszip: do need to delete martin's stream (but not
ours)
liblas-commits at liblas.org
liblas-commits at liblas.org
Thu Jan 6 16:23:48 EST 2011
details: http://hg.liblas.orglaszip/rev/71658514f280
changeset: 121:71658514f280
user: Michael P. Gerlek <mpg at flaxen.com>
date: Thu Jan 06 13:23:42 2011 -0800
description:
do need to delete martin's stream (but not ours)
diffstat:
src/lasunzipper.cpp | 1 +
src/laszipper.cpp | 1 +
2 files changed, 2 insertions(+), 0 deletions(-)
diffs (22 lines):
diff -r a8ad11ceb54b -r 71658514f280 src/lasunzipper.cpp
--- a/src/lasunzipper.cpp Thu Jan 06 10:01:53 2011 -0800
+++ b/src/lasunzipper.cpp Thu Jan 06 13:23:42 2011 -0800
@@ -92,6 +92,7 @@
if (reader) delete reader;
reader = 0;
unsigned int byteCount = stream->byteCount();
+ delete stream;
stream = 0;
return byteCount;
}
diff -r a8ad11ceb54b -r 71658514f280 src/laszipper.cpp
--- a/src/laszipper.cpp Thu Jan 06 10:01:53 2011 -0800
+++ b/src/laszipper.cpp Thu Jan 06 13:23:42 2011 -0800
@@ -115,6 +115,7 @@
if (writer) delete writer;
writer = 0;
unsigned int byteCount = stream->byteCount();
+ delete stream;
stream = 0;
return byteCount;
}
More information about the Liblas-commits
mailing list