X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/43b2d5e7c3b3e3d6b245e279dde73d96e0075911..11e3c6ef36393fb5863ea2f9601d8facd73acb12:/samples/ipc/baseserver.cpp diff --git a/samples/ipc/baseserver.cpp b/samples/ipc/baseserver.cpp index 6549fdfa42..fc5e88c65b 100644 --- a/samples/ipc/baseserver.cpp +++ b/samples/ipc/baseserver.cpp @@ -7,7 +7,7 @@ // Created: 2007-11-08 // RCS-ID: $Id$ // Copyright: (c) 2007 Anders Larsen -// License: wxWindows licence +// Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// // ============================================================================ @@ -211,8 +211,7 @@ void MyServer::Disconnect() if ( m_connection ) { m_connection->Disconnect(); - delete m_connection; - m_connection = NULL; + wxDELETE(m_connection); wxLogMessage("Disconnected client"); } }