[mapserver-commits] r11073 - trunk/mapserver
svn at osgeo.org
svn at osgeo.org
Fri Mar 4 14:57:49 EST 2011
Author: rouault
Date: 2011-03-04 11:57:49 -0800 (Fri, 04 Mar 2011)
New Revision: 11073
Modified:
trunk/mapserver/mapwcs20.c
Log:
fix memory leaks and Valgrind warning
Modified: trunk/mapserver/mapwcs20.c
===================================================================
--- trunk/mapserver/mapwcs20.c 2011-03-04 19:57:16 UTC (rev 11072)
+++ trunk/mapserver/mapwcs20.c 2011-03-04 19:57:49 UTC (rev 11073)
@@ -112,7 +112,11 @@
static int msWCSParseTimeOrScalar20(timeScalarUnion *u, const char *string)
{
struct tm time;
- msStringTrim((char *) string);
+ if (string)
+ {
+ while(*string == ' ')
+ string ++;
+ }
if (!string || strlen(string) == 0 || !u)
{
@@ -3373,10 +3377,13 @@
map->extent = layer->extent;
msFreeProjection(&(map->projection));
map->projection = subsetProj;
+ msFreeProjection(&imageProj);
}
else
{
+ msFreeProjection(&(map->projection));
map->projection = imageProj;
+ msFreeProjection(&subsetProj);
}
}
More information about the mapserver-commits
mailing list