X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b6819de8da101f1ec62f25648de5d2d132e02daf..07bfacf3a6658037e38f080c04bb56783d54463a:/src/unix/taskbarx11.cpp diff --git a/src/unix/taskbarx11.cpp b/src/unix/taskbarx11.cpp index 6c3af3359f..ced3b5e059 100644 --- a/src/unix/taskbarx11.cpp +++ b/src/unix/taskbarx11.cpp @@ -264,7 +264,8 @@ wxTaskBarIcon::~wxTaskBarIcon() { if (m_iconWnd) { - m_iconWnd->Disconnect(wxEVT_DESTROY, NULL, NULL, this); + m_iconWnd->Disconnect( + wxEVT_DESTROY, wxObjectEventFunction(NULL), NULL, this); RemoveIcon(); } }