[mapserver-commits] r9888 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Tue Feb 23 15:49:54 EST 2010


Author: warmerdam
Date: 2010-02-23 15:49:52 -0500 (Tue, 23 Feb 2010)
New Revision: 9888

Modified:
   trunk/mapserver/mapagg2.cpp
Log:
fix new/delete type mismatch, remove unused variable

Modified: trunk/mapserver/mapagg2.cpp
===================================================================
--- trunk/mapserver/mapagg2.cpp	2010-02-23 19:30:57 UTC (rev 9887)
+++ trunk/mapserver/mapagg2.cpp	2010-02-23 20:49:52 UTC (rev 9888)
@@ -467,7 +467,6 @@
       string += msUTF8ToUniChar(string, &unicode);
       glyph = r->m_fman.glyph(unicode);
       if (glyph) {
-         double t;
          rect->minx = MS_MIN(rect->minx, fx+glyph->bounds.x1);
          rect->miny = MS_MIN(rect->miny, fy+glyph->bounds.y1);
          rect->maxx = MS_MAX(rect->maxx, fx+glyph->bounds.x2);
@@ -496,7 +495,7 @@
 void agg2FreeImage(imageObj * image) {
 
    AGG2Renderer *r = agg2GetRenderer(image);
-   delete r->buffer;
+   delete[] r->buffer;
    delete r;
    image->img.plugin = NULL;
 }



More information about the mapserver-commits mailing list