Reset icon ref count when deleting the icon in wxMSW balloon icons code.

This avoids the assert which happened when trying to show the next
notification message in SetUpIcon() as the icon was null while the reference
count was positive.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76447 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2014-05-04 22:12:05 +00:00
parent 1be1f56be1
commit 51871b7b5a

View File

@ -341,6 +341,7 @@ wxBalloonNotifMsgImpl::DoShow(const wxString& title,
// first place.
delete ms_icon;
ms_icon = NULL;
ms_refCountIcon = 0;
return false;
}