lavu/tx: reset subcontext pointer if initialization fails
Thanks to mkver for pointing this out.
This commit is contained in:
parent
95f02e43e1
commit
265731f201
@ -606,7 +606,7 @@ av_cold int ff_tx_init_subtx(AVTXContext *s, enum AVTXType type,
|
||||
break;
|
||||
}
|
||||
|
||||
av_free(sub);
|
||||
av_freep(&s->sub);
|
||||
|
||||
end:
|
||||
av_free(cd_matches);
|
||||
|
Loading…
x
Reference in New Issue
Block a user