[mapserver-commits] r8715 - trunk/mapserver
svn at osgeo.org
svn at osgeo.org
Mon Mar 9 14:27:19 EDT 2009
Author: dmorissette
Date: 2009-03-09 14:27:18 -0400 (Mon, 09 Mar 2009)
New Revision: 8715
Modified:
trunk/mapserver/maporaclespatial.c
Log:
Do not reallocate layerinfo->items_query if it's already allocated (#2584)
Modified: trunk/mapserver/maporaclespatial.c
===================================================================
--- trunk/mapserver/maporaclespatial.c 2009-03-09 18:12:30 UTC (rev 8714)
+++ trunk/mapserver/maporaclespatial.c 2009-03-09 18:27:18 UTC (rev 8715)
@@ -2089,7 +2089,8 @@
/* allocate enough space for items */
if (layer->numitems > 0)
{
- layerinfo->items_query = (item_text_array_query *)malloc( sizeof(item_text_array_query) * (layer->numitems) );
+ if (layerinfo->items_query == NULL)
+ layerinfo->items_query = (item_text_array_query *)malloc( sizeof(item_text_array_query) * (layer->numitems) );
if (layerinfo->items_query == NULL)
{
More information about the mapserver-commits
mailing list