ffmpeg: call tag_free() instead of free()
tag objects must be freed with tag_free() to ensure that all resources are freed.
This commit is contained in:
parent
25f4efcdb8
commit
964442c5ad
|
@ -332,7 +332,7 @@ static struct tag *ffmpeg_tag(char *file)
|
|||
|
||||
ret = ffmpeg_helper(&input, ffmpeg_tag_internal, &base);
|
||||
if (ret) {
|
||||
free(base.tag);
|
||||
tag_free(base.tag);
|
||||
base.tag = NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue