]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/ipc/client.cpp
Removed redundant DoEnable
[wxWidgets.git] / samples / ipc / client.cpp
index bda33916b13c9951e3116929f279642ce5d588c0..a91f524d7d3e93d2a248a388a1355cff34e015b8 100644 (file)
@@ -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();
 }