X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c0c133e13b36a923c65f94499554e432bc3a0daa..e0dec8753abaf97e006ea1185bfb6775b28df0a8:/samples/ipc/baseserver.cpp 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;