From: Mark Spencer Date: Tue, 1 Feb 2005 20:05:30 +0000 (+0000) Subject: Fix proper cleanup (bug #3481) X-Git-Tag: 1.2.0-beta1~1276 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d93cfc416cd81edd47eed778ffee9818675dea11;p=thirdparty%2Fasterisk.git Fix proper cleanup (bug #3481) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4945 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_meetme.c b/apps/app_meetme.c index 6f003f7af5..e470b39757 100755 --- a/apps/app_meetme.c +++ b/apps/app_meetme.c @@ -1108,14 +1108,15 @@ zapretry: if (!(confflags & CONFFLAG_QUIET) && !(confflags & CONFFLAG_MONITOR) && !(confflags & CONFFLAG_ADMIN)) conf_play(conf, LEAVE); - if (!(confflags & CONFFLAG_QUIET) && (confflags & CONFFLAG_INTROUSER) && conf->users > 1) { - if (conf->chan && ast_fileexists(user->namerecloc, NULL, NULL)) { - if (!ast_streamfile(conf->chan, user->namerecloc, chan->language)) - ast_waitstream(conf->chan, ""); - if (!ast_streamfile(conf->chan, "conf-hasleft", chan->language)) - ast_waitstream(conf->chan, ""); + if (!(confflags & CONFFLAG_QUIET) && (confflags & CONFFLAG_INTROUSER)) { + if (ast_fileexists(user->namerecloc, NULL, NULL)) { + if ((conf->chan) && (conf->users > 1)) { + if (!ast_streamfile(conf->chan, user->namerecloc, chan->language)) + ast_waitstream(conf->chan, ""); + if (!ast_streamfile(conf->chan, "conf-hasleft", chan->language)) + ast_waitstream(conf->chan, ""); + } ast_filedelete(user->namerecloc, NULL); - } } ast_mutex_unlock(&conflock);