// Created: 2007-11-08
// RCS-ID: $Id$
// Copyright: (c) 2007 Anders Larsen
-// License: wxWindows licence
+// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
// ============================================================================
if ( m_connection )
{
m_connection->Disconnect();
- delete m_connection;
- m_connection = NULL;
+ wxDELETE(m_connection);
wxLogMessage("Disconnected client");
}
}
if ( m_advise )
{
if ( !Advise(item, m_item) )
+ {
wxLogMessage("Failed to advise client about the change.");
+ }
}
return true;