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

View file

@ -17216,13 +17216,7 @@ static int unload_module(void)
while (p) { while (p) {
pl = p; pl = p;
p = p->next; p = p->next;
/* Free associated memory */ __sip_destroy(pl, TRUE, TRUE);
ast_mutex_destroy(&pl->pvt_lock);
if (pl->chanvars) {
ast_variables_destroy(pl->chanvars);
pl->chanvars = NULL;
}
free(pl);
} }
dialoglist = NULL; dialoglist = NULL;
ast_mutex_unlock(&dialoglock); ast_mutex_unlock(&dialoglock);