]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/ipc/baseclient.cpp
Reflect changes in stc.cpp in stc.cpp.in from which it's generated.
[wxWidgets.git] / samples / ipc / baseclient.cpp
index acd1507adc2ea105bed26a1e7052d2391884cb4e..99ba992876dc938c09cb140a927e5940b92ceac3 100644 (file)
@@ -5,9 +5,8 @@
 //              Most of the code was stolen from: samples/ipc/client.cpp
 //              (c) Julian Smart, Jurgen Doornik
 // Created:     2007-11-08
-// RCS-ID:      $Id$
 // Copyright:   (c) 2007 Anders Larsen
-// License:     wxWindows licence
+// Licence:     wxWindows licence
 ///////////////////////////////////////////////////////////////////////////////
 
 // ============================================================================
@@ -184,8 +183,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();