[Liblas-commits] hg: las2ogr: call OGRCleanupAll on exit.

liblas-commits at liblas.org liblas-commits at liblas.org
Thu Oct 22 19:46:06 EDT 2009


changeset 9fd463007438 in /home/www/liblas.org/hg
details: http://hg.liblas.org/main/hg?cmd=changeset;node=9fd463007438
summary: las2ogr: call OGRCleanupAll on exit.

diffstat:

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

diffs (21 lines):

diff -r a94df377b7e1 -r 9fd463007438 apps/las2ogr.cpp
--- a/apps/las2ogr.cpp	Fri Oct 23 00:33:51 2009 +0100
+++ b/apps/las2ogr.cpp	Fri Oct 23 00:45:51 2009 +0100
@@ -232,7 +232,7 @@
 #ifdef HAVE_GDAL
     try
     {
-        OGRRegisterAll();
+        ::OGRRegisterAll();
 
         // Parse command-line options
         std::string in_file;
@@ -386,6 +386,8 @@
     std::cout << "Missing GDAL/OGR support built-in las2ogr. Aborted." << std::endl;
 #endif // #ifdef HAVE_GDAL
 
+    ::OGRCleanupAll();
     return rc;
 }
 
+


More information about the Liblas-commits mailing list