[GRASS-SVN] r58315 - grass/branches/releasebranch_6_4/raster/r.out.gdal
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Nov 26 14:56:56 PST 2013
Author: neteler
Date: 2013-11-26 14:56:55 -0800 (Tue, 26 Nov 2013)
New Revision: 58315
Modified:
grass/branches/releasebranch_6_4/raster/r.out.gdal/export_band.c
Log:
r.out.gdal: close raster band (backport from trunk, r58304, r58305
Modified: grass/branches/releasebranch_6_4/raster/r.out.gdal/export_band.c
===================================================================
--- grass/branches/releasebranch_6_4/raster/r.out.gdal/export_band.c 2013-11-26 22:08:19 UTC (rev 58314)
+++ grass/branches/releasebranch_6_4/raster/r.out.gdal/export_band.c 2013-11-26 22:56:55 UTC (rev 58315)
@@ -16,6 +16,7 @@
#include <grass/gis.h>
#include <grass/glocale.h>
+
#include "cpl_string.h"
#include "gdal.h"
#include "local_proto.h"
@@ -213,6 +214,8 @@
ret = -1;
}
+ G_close_cell(fd);
+
G_free(bufer);
return ret;
@@ -484,6 +487,8 @@
}
}
+ G_close_cell(fd);
+
G_free(bufer);
return ret;
@@ -492,6 +497,7 @@
int exact_range_check(double min, double max, GDALDataType datatype,
const char *name)
{
+
switch (datatype) {
case GDT_Byte:
if (min < TYPE_BYTE_MIN || max > TYPE_BYTE_MAX) {
More information about the grass-commit
mailing list