From 9bc84051f6ca11315dc3b33e1e20a69cf23bdf8d Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Tue, 17 Feb 2015 15:24:56 -0600 Subject: [PATCH] FS-7513: fix possible mem leak --- src/mod/applications/mod_conference/mod_conference.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mod/applications/mod_conference/mod_conference.c b/src/mod/applications/mod_conference/mod_conference.c index b12578407c..51bd7f4ae9 100644 --- a/src/mod/applications/mod_conference/mod_conference.c +++ b/src/mod/applications/mod_conference/mod_conference.c @@ -1680,8 +1680,8 @@ static void *SWITCH_THREAD_FUNC conference_video_muxing_thread_run(switch_thread layer->mute_patched = 0; } else { switch_img_free(&img); - if (!layer->mute_patched) { + if (!layer->mute_patched) { if (imember->video_mute_png || layer->mute_img) { reset_layer(conference->canvas, layer); @@ -1697,11 +1697,13 @@ static void *SWITCH_THREAD_FUNC conference_video_muxing_thread_run(switch_thread if (img) { layer->cur_img = img; + img = NULL; layer->tagged = 1; } } switch_mutex_unlock(conference->canvas->mutex); + switch_img_free(&img); } if (imember->session) {