#endif
// For compilers that support precompilation, includes "wx.h".
-#include <wx/wxprec.h>
+#include "wx/wxprec.h"
#ifdef __BORLANDC__
#pragma hdrstop
#include <wx/wxexpr.h>
+#ifdef new
+#undef new
+#endif
+
#if wxUSE_IOSTREAMH
#include <iostream.h>
#else
if (m_canvas)
m_canvas->RemoveShape(this);
+ if (m_clientData) {
+ delete m_clientData;
+ m_clientData = NULL;
+ }
+
GetEventHandler()->OnDelete();
}