X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5276b0a53cef4815230e39b54d2ecda14f72cbd1..2a45803fc3877afd0ae3ce356dfe216505165882:/samples/ipc/client.cpp?ds=inline 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(); }