From 095a3221605f9d3dd48f1967b3cc9f29c7abcb54 Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Mon, 14 Apr 2008 09:40:11 +0000 Subject: [PATCH] Correct weak ref usage which triggered an assert git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53164 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/datavcmn.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/common/datavcmn.cpp b/src/common/datavcmn.cpp index 7f85194b9b..6e67dbaa40 100644 --- a/src/common/datavcmn.cpp +++ b/src/common/datavcmn.cpp @@ -678,6 +678,7 @@ public: virtual void OnObjectDestroy() { get()->PopEventHandler( true ); + m_pobj = NULL; delete this; } }; -- 2.50.0