Fix fatal bug when changing wxDataViewCtrl model in wxGTK.
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 9 Nov 2009 01:57:47 +0000 (01:57 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 9 Nov 2009 01:57:47 +0000 (01:57 +0000)
commitc8b6d5a0498d5493639d2d943043159ee2605036
tree45cfb3d9687196376df3aed8855991f9d795952a
parent80093617fe65df256aa8332f80a25ed6e4a510ad
Fix fatal bug when changing wxDataViewCtrl model in wxGTK.

wxDataViewCtrl::AssociateModel() wrongly delete m_notifier itself if the
control already had a model even though the notifier was registered using
AddNotifier() which also scheduled it for deletion when the old model itself
was destroyed. This resulted in double deletion and reproducible crash
whenever the model was changed.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62577 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/gtk/dataview.cpp