X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3f1802b55dc7cdcd972e1cdce5e512b267ca3b05..a7ae8fea4773cd9a4c06ffb5b3df564b546b2bb4:/contrib/src/ogl/basic.cpp 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(); }