]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/ipc/baseclient.cpp
Add wxSize::IncBy() and DecBy() overloads taking wxPoint.
[wxWidgets.git] / samples / ipc / baseclient.cpp
index acd1507adc2ea105bed26a1e7052d2391884cb4e..e196bb26e9399c387d8b495c075b8a35509ae671 100644 (file)
@@ -184,8 +184,7 @@ void MyClient::Disconnect()
     if (m_connection)
     {
         m_connection->Disconnect();
-        delete m_connection;
-        m_connection = NULL;
+        wxDELETE(m_connection);
         wxLogMessage("Client disconnected from server");
     }
     wxGetApp().ExitMainLoop();