lavu/tx: reset subcontext pointer if initialization fails

Thanks to mkver for pointing this out.
This commit is contained in:
Lynne 2022-01-29 00:52:53 +01:00
parent 95f02e43e1
commit 265731f201
No known key found for this signature in database
GPG Key ID: A2FEA5F03F034464
1 changed files with 1 additions and 1 deletions

View File

@ -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);