Merge pull request #526 in FS/freeswitch from ~BRADLEYJOKINEN/freeswitch:FS-8274 to master
* commit 'd8e21b43e00756f301204a75f6dd53d3b721f688': FS-8274 Fix memory leak caused by images not being freed in video_thread_run
This commit is contained in:
commit
7b4c5a863e
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue