Fix crash on destruction of wxDataViewCtrl in wxOSX.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 20 May 2012 20:29:09 +0000 (20:29 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 20 May 2012 20:29:09 +0000 (20:29 +0000)
commita2c3fc7c750c0ac1452d34dcdd9be9c6fcc64c90
tree0ceaef58ebdd33e0d98ce70b39ed260dcdd44531
parente779f0935774b9fb0ded3ca55ca2c0dc92330813
Fix crash on destruction of wxDataViewCtrl in wxOSX.

The control remained associated to the model so a dangling pointer could be
used if the model was destroyed after the control.

Fix this by removing the control from the model list of notifiers when it is
destroyed.

Closes #14124.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71511 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/osx/dataview.h
src/osx/dataview_osx.cpp