Skip to content
Snippets Groups Projects
Commit 669cebe9 authored by Alexandre Bourget's avatar Alexandre Bourget
Browse files

Properly destroy everything on account removal.

parent c7b30f5a
No related branches found
No related tags found
No related merge requests found
...@@ -31,7 +31,9 @@ Account::Account(const AccountID& accountID) : _accountID(accountID) ...@@ -31,7 +31,9 @@ Account::Account(const AccountID& accountID) : _accountID(accountID)
Account::~Account() 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) ...@@ -32,6 +32,7 @@ IAXAccount::IAXAccount(const AccountID& accountID)
IAXAccount::~IAXAccount() IAXAccount::~IAXAccount()
{ {
delete _link; delete _link;
_link = NULL;
} }
void void
......
...@@ -32,6 +32,7 @@ SIPAccount::SIPAccount(const AccountID& accountID) ...@@ -32,6 +32,7 @@ SIPAccount::SIPAccount(const AccountID& accountID)
SIPAccount::~SIPAccount() SIPAccount::~SIPAccount()
{ {
delete _link; delete _link;
_link = NULL;
} }
void void
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment