]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/src/ogl/basic.cpp
Removed call to SubclassWin since it is already done in
[wxWidgets.git] / contrib / src / ogl / basic.cpp
index dc375630999fb4026e9034e1107cd1fe6d017a1c..0a85bbb517a4ea9f0129764b456ebbc8d2b6218e 100644 (file)
@@ -338,6 +338,11 @@ wxShape::~wxShape()
   if (m_canvas)
     m_canvas->RemoveShape(this);
 
+  if (m_clientData) {
+      delete m_clientData;
+      m_clientData = NULL;
+  }
+
   GetEventHandler()->OnDelete();
 }