]> git.saurik.com Git - wxWidgets.git/commitdiff
Remove unnecessary check from IPC sample.
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 7 Oct 2010 20:43:20 +0000 (20:43 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 7 Oct 2010 20:43:20 +0000 (20:43 +0000)
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

index bda33916b13c9951e3116929f279642ce5d588c0..24132a36c237d24cf252c68359637e98cd859b93 100644 (file)
@@ -232,10 +232,8 @@ void MyFrame::EnableControls()
 
 void MyFrame::OnClose(wxCloseEvent& event)
 {
-    if (m_client)
-    {
-        wxDELETE(m_client);
-    }
+    wxDELETE(m_client);
+
     event.Skip();
 }