]> git.saurik.com Git - wxWidgets.git/commitdiff
Correct weak ref usage which triggered an assert
authorRobert Roebling <robert@roebling.de>
Mon, 14 Apr 2008 09:40:11 +0000 (09:40 +0000)
committerRobert Roebling <robert@roebling.de>
Mon, 14 Apr 2008 09:40:11 +0000 (09:40 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53164 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/datavcmn.cpp

index 7f85194b9bc8065dff598ef1a550bd75f2378861..6e67dbaa40133e2f8e59e5b7a748569a6ad6d47a 100644 (file)
@@ -678,6 +678,7 @@ public:
    virtual void OnObjectDestroy()
    {
       get()->PopEventHandler( true );
+      m_pobj = NULL;
       delete this;
    }
 };