提交 d8e21b43 authored 作者: Bradley Jokinen's avatar Bradley Jokinen

FS-8274 Fix memory leak caused by images not being freed in video_thread_run

上级 a983cc52
...@@ -506,6 +506,8 @@ static void *SWITCH_THREAD_FUNC video_thread_run(switch_thread_t *thread, void * ...@@ -506,6 +506,8 @@ static void *SWITCH_THREAD_FUNC video_thread_run(switch_thread_t *thread, void *
int ret = -1; int ret = -1;
if (switch_queue_pop(eh->video_queue, &pop) == SWITCH_STATUS_SUCCESS) { if (switch_queue_pop(eh->video_queue, &pop) == SWITCH_STATUS_SUCCESS) {
switch_img_free(&img);
if (!pop) { if (!pop) {
goto endfor; goto endfor;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论