]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Only dispose of the conference if one was created.
authorJoshua Colp <jcolp@digium.com>
Wed, 21 Feb 2007 20:16:34 +0000 (20:16 +0000)
committerJoshua Colp <jcolp@digium.com>
Wed, 21 Feb 2007 20:16:34 +0000 (20:16 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@55949 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_meetme.c

index 187ec0a5d1ff274a15f0f196fee0f3c89372c9d8..a66ba45d8d1420cf3a3b7e9532adc2567b69349d 100644 (file)
@@ -2537,8 +2537,10 @@ static int conf_exec(struct ast_channel *chan, void *data)
                                        res = conf_run(chan, cnf, confflags.flags, optargs);
                                }
                        }
-                       dispose_conf(cnf);
-                       cnf = NULL;
+                       if (cnf) {
+                               dispose_conf(cnf);
+                               cnf = NULL;
+                       }
                }
        } while (allowretry);