ref: 3bc58f13cc4ae0881ce483a8dcd7789a2d6f325d
parent: f80e888723942e821d7f89735ab71d96662f6aa2
author: James Zern <[email protected]>
date: Tue May 19 12:41:54 EDT 2020
vp9_decoder: free postproc_state.prev_mip this fixes a leak when using MFQE BUG=webm:1692 Change-Id: I19fb2f07155769f59924e0843989b3d3f8899bf6
--- a/vp9/decoder/vp9_decoder.c
+++ b/vp9/decoder/vp9_decoder.c
@@ -153,6 +153,11 @@
}
static void vp9_dec_free_mi(VP9_COMMON *cm) {
+#if CONFIG_VP9_POSTPROC
+ // MFQE allocates an additional mip and swaps it with cm->mip.
+ vpx_free(cm->postproc_state.prev_mip);
+ cm->postproc_state.prev_mip = NULL;
+#endif
vpx_free(cm->mip);
cm->mip = NULL;
vpx_free(cm->mi_grid_base);