Use the mailbox destructor function, instead.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@268818 65c4cc65-6c06-0410-ace0-fbb531ad65f3
certified/1.8.6
Tilghman Lesher 15 years ago
parent 8b790e4f06
commit bfdb973191

@ -25439,7 +25439,7 @@ static struct sip_peer *build_peer(const char *name, struct ast_variable *v, str
AST_LIST_TRAVERSE_SAFE_BEGIN(&peer->mailboxes, mailbox, entry) {
if (mailbox->delme) {
AST_LIST_REMOVE_CURRENT(entry);
ast_free(mailbox);
destroy_mailbox(mailbox);
}
}
AST_LIST_TRAVERSE_SAFE_END;

Loading…
Cancel
Save