mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
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…
Reference in New Issue
Block a user