FS-7513: fix possible mem leak

This commit is contained in:
Anthony Minessale 2015-02-17 15:24:56 -06:00 committed by Michael Jerris
parent 3e093da0dd
commit 9bc84051f6
1 changed files with 3 additions and 1 deletions

View File

@ -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) {