diff --git a/src/mod/formats/mod_local_stream/mod_local_stream.c b/src/mod/formats/mod_local_stream/mod_local_stream.c index 749fd522dc..2a5f89532a 100644 --- a/src/mod/formats/mod_local_stream/mod_local_stream.c +++ b/src/mod/formats/mod_local_stream/mod_local_stream.c @@ -372,6 +372,7 @@ static void *SWITCH_THREAD_FUNC read_stream_thread(switch_thread_t *thread, void if (source->total) { switch_queue_push(source->video_q, vid_frame.img); } else { + switch_img_free(&vid_frame.img); flush_video_queue(source->video_q); } }