]> git.saurik.com Git - wxWidgets.git/commitdiff
corrected delete operator for array
authorStefan Csomor <csomor@advancedconcepts.ch>
Thu, 18 Mar 2004 13:57:03 +0000 (13:57 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Thu, 18 Mar 2004 13:57:03 +0000 (13:57 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26255 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

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];
     }
-    delete pts;
+    delete[] pts;
 }
 
 // ----------------------------------------------------------------------------