[GRASS-SVN] r52269 - grass/branches/develbranch_6/raster/r.in.gdal
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Jul 1 10:03:31 PDT 2012
Author: mmetz
Date: 2012-07-01 10:03:30 -0700 (Sun, 01 Jul 2012)
New Revision: 52269
Modified:
grass/branches/develbranch_6/raster/r.in.gdal/main.c
Log:
r.in.gdal: close GDALDataset
Modified: grass/branches/develbranch_6/raster/r.in.gdal/main.c
===================================================================
--- grass/branches/develbranch_6/raster/r.in.gdal/main.c 2012-07-01 17:02:40 UTC (rev 52268)
+++ grass/branches/develbranch_6/raster/r.in.gdal/main.c 2012-07-01 17:03:30 UTC (rev 52269)
@@ -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