From 51871b7b5a0af55e0631e49c6f8053a8682adafc Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 4 May 2014 22:12:05 +0000 Subject: [PATCH] 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 --- src/msw/notifmsg.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/msw/notifmsg.cpp b/src/msw/notifmsg.cpp index aeef3a3974..61d3d656ad 100644 --- a/src/msw/notifmsg.cpp +++ b/src/msw/notifmsg.cpp @@ -341,6 +341,7 @@ wxBalloonNotifMsgImpl::DoShow(const wxString& title, // first place. delete ms_icon; ms_icon = NULL; + ms_refCountIcon = 0; return false; }