make capabilities and sockets refcounted

This commit is contained in:
Mathieu Lacage
2007-05-02 23:18:51 +02:00
parent 5528c400d0
commit e5d10e4bf7
12 changed files with 32 additions and 17 deletions

View File

@@ -95,11 +95,14 @@ OnOffApplication::~OnOffApplication()
void
OnOffApplication::Dispose (void)
{
delete m_socket;
if (m_socket != 0)
{
m_socket->Unref ();
m_socket = 0;
}
delete m_onTime;
delete m_offTime;
m_socket = 0;
m_onTime = 0;
m_offTime = 0;