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:
Olle Johansson 2006-11-08 08:01:44 +00:00
parent c8597704ce
commit e644ba34c5
1 changed files with 1 additions and 7 deletions

View File

@ -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);