From: Stefan Csomor Date: Thu, 18 Mar 2004 13:57:03 +0000 (+0000) Subject: corrected delete operator for array X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/6db1f43b6c914e0fc01631ffb75ca559a0c37cf6?ds=sidebyside corrected delete operator for array git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26255 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/dcbase.cpp b/src/common/dcbase.cpp index 5237dabd47..88612bfdb1 100644 --- a/src/common/dcbase.cpp +++ b/src/common/dcbase.cpp @@ -146,7 +146,7 @@ wxDCBase::DoDrawPolyPolygon(int n, DoDrawLines(count[i], pts+j, xoffset, yoffset); j += count[i]; } - delete pts; + delete[] pts; } // ----------------------------------------------------------------------------