[GRASS-SVN] r52268 - grass/trunk/raster/r.in.gdal
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Jul 1 10:02:43 PDT 2012
Author: mmetz
Date: 2012-07-01 10:02:40 -0700 (Sun, 01 Jul 2012)
New Revision: 52268
Modified:
grass/trunk/raster/r.in.gdal/main.c
Log:
r.in.gdal: close GDALDataset; G_done_msg() when we are really done
Modified: grass/trunk/raster/r.in.gdal/main.c
===================================================================
--- grass/trunk/raster/r.in.gdal/main.c 2012-07-01 17:00:10 UTC (rev 52267)
+++ grass/trunk/raster/r.in.gdal/main.c 2012-07-01 17:02:40 UTC (rev 52268)
@@ -615,6 +615,9 @@
}
}
+ /* close the GDALDataset to avoid segfault in libgdal */
+ GDALClose(hDS);
+
/* -------------------------------------------------------------------- */
/* Extend current window based on dataset. */
/* -------------------------------------------------------------------- */
@@ -647,6 +650,8 @@
G_message(_("Region for the current mapset updated"));
}
+ G_done_msg(" ");
+
exit(EXIT_SUCCESS);
}
@@ -979,7 +984,7 @@
}
}
- G_done_msg(_("Raster map <%s> created."), output);
+ G_message(_("Raster map <%s> created."), output);
return;
}
More information about the grass-commit
mailing list