Destroy dialog properly at unload (rizzo)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47313 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
parent
c8597704ce
commit
e644ba34c5
1 changed files with 1 additions and 7 deletions
|
@ -17216,13 +17216,7 @@ static int unload_module(void)
|
|||
while (p) {
|
||||
pl = p;
|
||||
p = p->next;
|
||||
/* Free associated memory */
|
||||
ast_mutex_destroy(&pl->pvt_lock);
|
||||
if (pl->chanvars) {
|
||||
ast_variables_destroy(pl->chanvars);
|
||||
pl->chanvars = NULL;
|
||||
}
|
||||
free(pl);
|
||||
__sip_destroy(pl, TRUE, TRUE);
|
||||
}
|
||||
dialoglist = NULL;
|
||||
ast_mutex_unlock(&dialoglock);
|
||||
|
|
Loading…
Reference in a new issue