diff --git a/contrib/src/ogl/basic.cpp b/contrib/src/ogl/basic.cpp index dc37563099..0a85bbb517 100644 --- a/contrib/src/ogl/basic.cpp +++ b/contrib/src/ogl/basic.cpp @@ -338,6 +338,11 @@ wxShape::~wxShape() if (m_canvas) m_canvas->RemoveShape(this); + if (m_clientData) { + delete m_clientData; + m_clientData = NULL; + } + GetEventHandler()->OnDelete(); }