X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b6e5c4450a911ae75c2955e2f2277cd24b95ddbb..0b90b51ceb7eadbef93c256a42af49dae0659d34:/wxPython/src/mac/gdi.cpp diff --git a/wxPython/src/mac/gdi.cpp b/wxPython/src/mac/gdi.cpp index 6ea94f4de9..fd515b2f4f 100644 --- a/wxPython/src/mac/gdi.cpp +++ b/wxPython/src/mac/gdi.cpp @@ -190,13 +190,16 @@ public: { m_dash = NULL; } ~wxPyPen() { if (m_dash) - delete m_dash; + delete [] m_dash; } void SetDashes(int nb_dashes, const wxDash *dash) { + if (m_dash) + delete [] m_dash; m_dash = new wxDash[nb_dashes]; - for (int i=0; i