[QGIS Commit] r11414 - branches/symbology-ng-branch/src/core/pal

svn_qgis at osgeo.org svn_qgis at osgeo.org
Mon Aug 17 15:39:39 EDT 2009


Author: wonder
Date: 2009-08-17 15:39:22 -0400 (Mon, 17 Aug 2009)
New Revision: 11414

Modified:
   branches/symbology-ng-branch/src/core/pal/pal.cpp
Log:
fixed a newly introduced deallocation error.


Modified: branches/symbology-ng-branch/src/core/pal/pal.cpp
===================================================================
--- branches/symbology-ng-branch/src/core/pal/pal.cpp	2009-08-17 19:25:51 UTC (rev 11413)
+++ branches/symbology-ng-branch/src/core/pal/pal.cpp	2009-08-17 19:39:22 UTC (rev 11414)
@@ -269,7 +269,7 @@
     }
 
     // generate candidates for the feature part
-    LabelPosition** lPos;
+    LabelPosition** lPos = NULL;
     int nblp = ft_ptr->setPosition( context->scale, &lPos, context->bbox_min, context->bbox_max, ft_ptr, context->candidates
 #ifdef _EXPORT_MAP_
                                                , *context->svgmap



More information about the QGIS-commit mailing list