mirror of https://github.com/mpv-player/mpv
sd_lavc: Free extradata in case of init error
This commit is contained in:
parent
611426d162
commit
4b4dee09ad
|
@ -113,6 +113,8 @@ static int init(struct sd *sd)
|
|||
|
||||
error:
|
||||
MP_FATAL(sd, "Could not open libavcodec subtitle decoder\n");
|
||||
if (ctx)
|
||||
av_free(ctx->extradata);
|
||||
av_free(ctx);
|
||||
talloc_free(priv);
|
||||
return -1;
|
||||
|
|
Loading…
Reference in New Issue