mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2025-01-04 09:13:46 +00:00
Fixed memory leak with XDS videos
This commit is contained in:
parent
d453d9327e
commit
941d5544cf
@ -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);
|
iter = list_entry(ctx->cinfo_tree.all_stream.next, struct cap_info, all_stream);
|
||||||
list_del(&iter->all_stream);
|
list_del(&iter->all_stream);
|
||||||
|
freep(&iter->capbuf);
|
||||||
free(iter);
|
free(iter);
|
||||||
}
|
}
|
||||||
INIT_LIST_HEAD(&ctx->cinfo_tree.all_stream);
|
INIT_LIST_HEAD(&ctx->cinfo_tree.all_stream);
|
||||||
|
Loading…
Reference in New Issue
Block a user