X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c0c133e13b36a923c65f94499554e432bc3a0daa..34326da778583ca8eab95f2e41738da2852a5a16:/samples/ipc/baseserver.cpp?ds=sidebyside diff --git a/samples/ipc/baseserver.cpp b/samples/ipc/baseserver.cpp index 4d8025fedb..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"); } } @@ -376,7 +375,9 @@ bool BenchConnection::OnPoke(const wxString& topic, if ( m_advise ) { if ( !Advise(item, m_item) ) + { wxLogMessage("Failed to advise client about the change."); + } } return true;