plug memory leak
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29266 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
cd5cb880d0
commit
ba3834927e
@ -204,6 +204,7 @@ bool wxPyDrawXXXPolygon(wxDC& dc, PyObject* coords)
|
||||
return False;
|
||||
}
|
||||
dc.DrawPolygon(numPoints, points);
|
||||
delete [] points;
|
||||
return True;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user