X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5276b0a53cef4815230e39b54d2ecda14f72cbd1..34326da778583ca8eab95f2e41738da2852a5a16:/samples/ipc/client.cpp diff --git a/samples/ipc/client.cpp b/samples/ipc/client.cpp index bda33916b1..a91f524d7d 100644 --- a/samples/ipc/client.cpp +++ b/samples/ipc/client.cpp @@ -35,7 +35,7 @@ #include "wx/datetime.h" #include "client.h" -#if !defined(__WXMSW__) && !defined(__WXPM__) +#ifndef wxHAS_IMAGES_IN_RESOURCES #include "../sample.xpm" #endif @@ -232,10 +232,8 @@ void MyFrame::EnableControls() void MyFrame::OnClose(wxCloseEvent& event) { - if (m_client) - { - wxDELETE(m_client); - } + wxDELETE(m_client); + event.Skip(); }