Commit 669cebe9 authored by Alexandre Bourget's avatar Alexandre Bourget

Properly destroy everything on account removal.

parent c7b30f5a
......@@ -31,7 +31,9 @@ Account::Account(const AccountID& accountID) : _accountID(accountID)
Account::~Account()
{
delete _link; _link = NULL;
// _link should be destroyed WHERE IT'S CREATED
//delete _link;
//_link = NULL;
}
......
......@@ -32,6 +32,7 @@ IAXAccount::IAXAccount(const AccountID& accountID)
IAXAccount::~IAXAccount()
{
delete _link;
_link = NULL;
}
void
......
......@@ -32,6 +32,7 @@ SIPAccount::SIPAccount(const AccountID& accountID)
SIPAccount::~SIPAccount()
{
delete _link;
_link = NULL;
}
void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment