]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Destroy dialog properly at unload (rizzo)
authorOlle Johansson <oej@edvina.net>
Wed, 8 Nov 2006 07:40:53 +0000 (07:40 +0000)
committerOlle Johansson <oej@edvina.net>
Wed, 8 Nov 2006 07:40:53 +0000 (07:40 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@47309 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index bbcb91829d17233b4e37f64cf0db22356535668d..ff915c70ff09dd3a95d0de840d8ef54436d8f528 100644 (file)
@@ -17022,13 +17022,7 @@ static int unload_module(void)
        while (p) {
                pl = p;
                p = p->next;
-               /* Free associated memory */
-               ast_mutex_destroy(&pl->lock);
-               if (pl->chanvars) {
-                       ast_variables_destroy(pl->chanvars);
-                       pl->chanvars = NULL;
-               }
-               free(pl);
+               __sip_destroy(pl, TRUE);
        }
        iflist = NULL;
        ast_mutex_unlock(&iflock);