[Liblas-commits] hg: delete our copied header when closing the file

liblas-commits at liblas.org liblas-commits at liblas.org
Tue May 11 17:02:22 EDT 2010


changeset 7c35aec85c50 in /Volumes/Data/www/liblas.org/hg
details: http://hg.liblas.orghg?cmd=changeset;node=7c35aec85c50
summary: delete our copied header when closing the file

diffstat:

 python/liblas/file.py |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r 3d6a2a893b5c -r 7c35aec85c50 python/liblas/file.py
--- a/python/liblas/file.py	Tue May 11 15:22:43 2010 -0500
+++ b/python/liblas/file.py	Tue May 11 16:02:15 2010 -0500
@@ -192,7 +192,7 @@
                     files['read'].pop(self.filename)
             except KeyError:
                 raise core.LASException("File %s was not found in accounting dictionary!" % self.filename)
-            files['read'].remove(self.filename)
+
         else:
             try:
                 files['append'].remove(self.filename)
@@ -200,6 +200,7 @@
                 files['write'].remove(self.filename)
             core.las.LASWriter_Destroy(self.handle)
 
+        core.las.LASHeader_Destroy(self._header)
         self._header = None
         self.handle = None
 


More information about the Liblas-commits mailing list