summaryrefslogtreecommitdiff
path: root/vp10/encoder/context_tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'vp10/encoder/context_tree.c')
-rw-r--r--vp10/encoder/context_tree.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/vp10/encoder/context_tree.c b/vp10/encoder/context_tree.c
index d210e3610..532e82caa 100644
--- a/vp10/encoder/context_tree.c
+++ b/vp10/encoder/context_tree.c
@@ -61,6 +61,11 @@ static void free_mode_context(PICK_MODE_CONTEXT *ctx) {
ctx->eobs[i][k] = 0;
}
}
+
+ for (i = 0; i < 2; ++i) {
+ vpx_free(ctx->color_index_map[i]);
+ ctx->color_index_map[i] = 0;
+ }
}
static void alloc_tree_contexts(VP10_COMMON *cm, PC_TREE *tree,