Merge "Improved vp8_rd_pick_intra_mbuv_mode"
diff --git a/vp8/encoder/onyx_if.c b/vp8/encoder/onyx_if.c
index e73e41e..3f787d6 100644
--- a/vp8/encoder/onyx_if.c
+++ b/vp8/encoder/onyx_if.c
@@ -262,7 +262,8 @@
void vp8_dealloc_compressor_data(VP8_COMP *cpi)
{
- vpx_free(cpi->tplist);
+ if(cpi->tplist!=0)
+ vpx_free(cpi->tplist);
cpi->tplist = NULL;
// Delete last frame MV storage buffers
@@ -1406,6 +1407,9 @@
cpi->mt_sync_range = 16;
#endif
+ if(cpi->tplist);
+ vpx_free(cpi->tplist);
+
CHECK_MEM_ERROR(cpi->tplist, vpx_malloc(sizeof(TOKENLIST) * cpi->common.mb_rows));
}