Fixed memory leak with XDS videos

This commit is contained in:
Izaron 2016-12-07 20:05:38 +03:00
parent d453d9327e
commit 941d5544cf

View File

@ -256,6 +256,7 @@ void dinit_cap (struct ccx_demuxer *ctx)
{
iter = list_entry(ctx->cinfo_tree.all_stream.next, struct cap_info, all_stream);
list_del(&iter->all_stream);
freep(&iter->capbuf);
free(iter);
}
INIT_LIST_HEAD(&ctx->cinfo_tree.all_stream);