]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/dcbase.cpp
make construct simpler
[wxWidgets.git] / src / common / dcbase.cpp
index 5237dabd47856b47150c9c43094eaf90a12ae77c..88612bfdb10948ec573bfe2ee830dad90c7c2f86 100644 (file)
@@ -146,7 +146,7 @@ wxDCBase::DoDrawPolyPolygon(int n,
         DoDrawLines(count[i], pts+j, xoffset, yoffset);
         j += count[i];
     }
         DoDrawLines(count[i], pts+j, xoffset, yoffset);
         j += count[i];
     }
-    delete pts;
+    delete[] pts;
 }
 
 // ----------------------------------------------------------------------------
 }
 
 // ----------------------------------------------------------------------------