[mapserver-commits] r11403 - trunk/mapserver
svn at osgeo.org
svn at osgeo.org
Wed Mar 30 17:55:18 EDT 2011
Author: tamas
Date: 2011-03-30 14:55:18 -0700 (Wed, 30 Mar 2011)
New Revision: 11403
Modified:
trunk/mapserver/mapunion.c
Log:
Fix for the item handling with the union layer
Modified: trunk/mapserver/mapunion.c
===================================================================
--- trunk/mapserver/mapunion.c 2011-03-30 21:32:21 UTC (rev 11402)
+++ trunk/mapserver/mapunion.c 2011-03-30 21:55:18 UTC (rev 11403)
@@ -221,6 +221,13 @@
for (i = 0; i < layerinfo->layerCount; i++)
{
msLayerFreeItemInfo(&layerinfo->layers[i]);
+ if(layerinfo->layers[i].items)
+ {
+ /* need to remove the source layer items */
+ msFreeCharArray(layerinfo->layers[i].items, layerinfo->layers[i].numitems);
+ layerinfo->layers[i].items = NULL;
+ layerinfo->layers[i].numitems = 0;
+ }
}
}
More information about the mapserver-commits
mailing list