Delete wxListCtrl item data after handling its deletion event in wxMSW.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 12 Sep 2010 22:58:53 +0000 (22:58 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 12 Sep 2010 22:58:53 +0000 (22:58 +0000)
commitc67f815120bf24e8a9c111740d5df6ff2ab7b6ba
tree29e684636bb446e2978b7bce44f386c1abac3841
parentba97f6f8a39e978f5081f86752faa18ea3af7ba4
Delete wxListCtrl item data after handling its deletion event in wxMSW.

We deleted the data associated with the item too soon as we did it before the
handler for the item deletion event was run and this handler could still
access this data.

Only free the data after the handler returns now.

Closes #12449.

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