Fix double deletion bug in wxGTK wxDVC dnd code.
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 21 Jul 2011 13:50:26 +0000 (13:50 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 21 Jul 2011 13:50:26 +0000 (13:50 +0000)
commit41936464fd460f5f66db75c82672af9870e47e5f
treeebf3746f85c722ac75099ba7f7d4c7a19c3f9828
parent3e81bbbf6c49a3bc8765817ddf7a1e83ae418f7d
Fix double deletion bug in wxGTK wxDVC dnd code.

The row_draggable callback could blithely delete m_dragDataObject twice as it
didn't reset it to NULL after deleting it the first time. Then, if the object
wasn't changed in the meanwhile, e.g. because dragging was not allowed for
this item, it tried to do it again when called the next time resulting in a
crash.

Closes #12538.

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