Fix for bug [ 1098263 ] wx.lib.ogl control points leak
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31320 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -220,7 +220,6 @@ class LineShape(Shape):
|
||||
|
||||
def __del__(self):
|
||||
if self._lineControlPoints:
|
||||
self.ClearPointList(self._lineControlPoints)
|
||||
self._lineControlPoints = []
|
||||
for i in range(3):
|
||||
if self._labelObjects[i]:
|
||||
@@ -289,8 +288,6 @@ class LineShape(Shape):
|
||||
|
||||
def MakeLineControlPoints(self, n):
|
||||
"""Make a given number of control points (minimum of two)."""
|
||||
if self._lineControlPoints:
|
||||
self.ClearPointList(self._lineControlPoints)
|
||||
self._lineControlPoints = []
|
||||
|
||||
for _ in range(n):
|
||||
|
Reference in New Issue
Block a user