From: Vadim Zeitlin Date: Thu, 7 Oct 2010 20:43:20 +0000 (+0000) Subject: Remove unnecessary check from IPC sample. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/6e91bf4d5bc700f6bf3f5c05b9aef53fc8c0a0ba Remove unnecessary check from IPC sample. No real changes, just remove a check for pointer passed to wxDELETE() bot being NULL as wxDELETE() already checks for this anyhow. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65781 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/samples/ipc/client.cpp b/samples/ipc/client.cpp index bda33916b1..24132a36c2 100644 --- a/samples/ipc/client.cpp +++ b/samples/ipc/client.cpp @@ -232,10 +232,8 @@ void MyFrame::EnableControls() void MyFrame::OnClose(wxCloseEvent& event) { - if (m_client) - { - wxDELETE(m_client); - } + wxDELETE(m_client); + event.Skip(); }