summaryrefslogtreecommitdiff
path: root/vp9
diff options
context:
space:
mode:
authorJames Zern <jzern@google.com>2020-05-19 16:41:54 -0700
committerJames Zern <jzern@google.com>2020-05-19 16:41:54 -0700
commit3bc58f13cc4ae0881ce483a8dcd7789a2d6f325d (patch)
treeda062506cc50c35f27063393bbcb5ecc0a7fb4dc /vp9
parentf80e888723942e821d7f89735ab71d96662f6aa2 (diff)
downloadlibvpx-3bc58f13cc4ae0881ce483a8dcd7789a2d6f325d.tar
libvpx-3bc58f13cc4ae0881ce483a8dcd7789a2d6f325d.tar.gz
libvpx-3bc58f13cc4ae0881ce483a8dcd7789a2d6f325d.tar.bz2
libvpx-3bc58f13cc4ae0881ce483a8dcd7789a2d6f325d.zip
vp9_decoder: free postproc_state.prev_mip
this fixes a leak when using MFQE BUG=webm:1692 Change-Id: I19fb2f07155769f59924e0843989b3d3f8899bf6
Diffstat (limited to 'vp9')
-rw-r--r--vp9/decoder/vp9_decoder.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/vp9/decoder/vp9_decoder.c b/vp9/decoder/vp9_decoder.c
index bcade52c4..7db8ed72d 100644
--- a/vp9/decoder/vp9_decoder.c
+++ b/vp9/decoder/vp9_decoder.c
@@ -153,6 +153,11 @@ static int vp9_dec_alloc_mi(VP9_COMMON *cm, int mi_size) {
}
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);