Disconnect all GTK signals referencing a wx object which is being destructed
or which is destroying the associated GTK object git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72696 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -4462,6 +4462,11 @@ wxDataViewCtrl::~wxDataViewCtrl()
|
||||
// This won't do anything if we're not editing it
|
||||
wxcol->GetRenderer()->CancelEditing();
|
||||
}
|
||||
|
||||
GTKDisconnect(m_treeview);
|
||||
GtkTreeSelection* selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(m_treeview));
|
||||
if (selection)
|
||||
GTKDisconnect(selection);
|
||||
}
|
||||
|
||||
m_cols.Clear();
|
||||
@@ -4471,6 +4476,7 @@ wxDataViewCtrl::~wxDataViewCtrl()
|
||||
|
||||
void wxDataViewCtrl::Init()
|
||||
{
|
||||
m_treeview = NULL;
|
||||
m_internal = NULL;
|
||||
|
||||
m_cols.DeleteContents( true );
|
||||
|
Reference in New Issue
Block a user