]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-8274 Fix memory leak caused by images not being freed in video_thread_run
authorBradley Jokinen <bradleyjokinen@reliancetelephone.com>
Thu, 1 Oct 2015 21:34:05 +0000 (16:34 -0500)
committerBradley Jokinen <bradleyjokinen@reliancetelephone.com>
Thu, 1 Oct 2015 21:34:05 +0000 (16:34 -0500)
src/mod/applications/mod_av/avformat.c

index d33c4626666aea84f44f23e4751ccba6c43ba661..65864ad98e96ef242aa2f6645d6ac5c0e2618985 100644 (file)
@@ -506,6 +506,8 @@ static void *SWITCH_THREAD_FUNC video_thread_run(switch_thread_t *thread, void *
                int ret = -1;
 
                if (switch_queue_pop(eh->video_queue, &pop) == SWITCH_STATUS_SUCCESS) {
+            switch_img_free(&img);
+
                        if (!pop) {
                                goto endfor;
                        }