[GRASS-SVN] r52270 - grass/branches/releasebranch_6_4/raster/r.in.gdal

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Jul 1 10:03:54 PDT 2012


Author: mmetz
Date: 2012-07-01 10:03:53 -0700 (Sun, 01 Jul 2012)
New Revision: 52270

Modified:
   grass/branches/releasebranch_6_4/raster/r.in.gdal/main.c
Log:
r.in.gdal: close GDALDataset

Modified: grass/branches/releasebranch_6_4/raster/r.in.gdal/main.c
===================================================================
--- grass/branches/releasebranch_6_4/raster/r.in.gdal/main.c	2012-07-01 17:03:30 UTC (rev 52269)
+++ grass/branches/releasebranch_6_4/raster/r.in.gdal/main.c	2012-07-01 17:03:53 UTC (rev 52270)
@@ -592,6 +592,9 @@
 	}
     }
 
+    /* close the GDALDataset to avoid segfault in libgdal */
+    GDALClose(hDS);
+
     /* -------------------------------------------------------------------- */
     /*      Extend current window based on dataset.                         */
     /* -------------------------------------------------------------------- */



More information about the grass-commit mailing list