+wxWebViewWebKit::~wxWebViewWebKit()
+{
+ // The main goal here is to set m_isBeingDeleted to true to avoid the use
+ // of this -- already half-destroyed -- object from WebKit callbacks, but
+ // just setting it would prevent wxWindowDestroyEvent from being sent, so
+ // send it now instead.
+ SendDestroyEvent();
+}
+