From 6e91bf4d5bc700f6bf3f5c05b9aef53fc8c0a0ba Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 7 Oct 2010 20:43:20 +0000 Subject: [PATCH] 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 --- samples/ipc/client.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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(); }