X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4f167b46b42b81f8f646e594057535f05b05027f..2e0d1932aa72e3ca2b754597f428c75c75a801d2:/src/common/taskbarcmn.cpp diff --git a/src/common/taskbarcmn.cpp b/src/common/taskbarcmn.cpp index 29f39c23ee..540dddaad9 100644 --- a/src/common/taskbarcmn.cpp +++ b/src/common/taskbarcmn.cpp @@ -20,9 +20,12 @@ #ifndef WX_PRECOMP #include "wx/app.h" + #include "wx/list.h" #include "wx/menu.h" #endif +extern WXDLLIMPEXP_DATA_CORE(wxList) wxPendingDelete; + // DLL options compatibility check: WX_CHECK_BUILD_OPTIONS("wxAdvanced") @@ -51,4 +54,9 @@ void wxTaskBarIconBase::OnRightButtonDown(wxTaskBarIconEvent& WXUNUSED(event)) } } +void wxTaskBarIconBase::Destroy() +{ + wxPendingDelete.Append(this); +} + #endif // wxUSE_TASKBARICON