提交 7b4c5a86 authored 作者: Anthony Minessale II's avatar Anthony Minessale II

Merge pull request #526 in FS/freeswitch from ~BRADLEYJOKINEN/freeswitch:FS-8274 to master

* commit 'd8e21b43':
  FS-8274 Fix memory leak caused by images not being freed in video_thread_run
...@@ -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 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论