[Liblas-commits] hg: LASWriter_GetHeader and LASReader_GetHeader
return copies, n...
liblas-commits at liblas.org
liblas-commits at liblas.org
Fri Jan 21 09:36:48 EST 2011
details: http://hg.liblas.orghg/rev/55c57172f51c
changeset: 2805:55c57172f51c
user: Howard Butler <hobu.inc at gmail.com>
date: Fri Jan 21 08:36:37 2011 -0600
description:
LASWriter_GetHeader and LASReader_GetHeader return copies, not references, so we own them and should clean them up when we're done with them
diffstat:
python/liblas/file.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (15 lines):
diff -r 10b1d0a65e8a -r 55c57172f51c python/liblas/file.py
--- a/python/liblas/file.py Thu Jan 20 22:46:11 2011 -0600
+++ b/python/liblas/file.py Fri Jan 21 08:36:37 2011 -0600
@@ -261,9 +261,9 @@
return None
if self.mode == 0:
- return lasheader.Header(handle=core.las.LASReader_GetHeader(self.handle))
+ return lasheader.Header(handle=core.las.LASReader_GetHeader(self.handle), owned=True)
else:
- return lasheader.Header(handle=core.las.LASWriter_GetHeader(self.handle))
+ return lasheader.Header(handle=core.las.LASWriter_GetHeader(self.handle), owned=True)
return None
More information about the Liblas-commits
mailing list