]> granicus.if.org Git - libvpx/commitdiff
Minor fix: add back a vpx_free call
authorYunqing Wang <yunqingwang@google.com>
Wed, 21 Mar 2012 17:54:58 +0000 (13:54 -0400)
committerYunqing Wang <yunqingwang@google.com>
Wed, 21 Mar 2012 18:09:33 +0000 (14:09 -0400)
Added back a vpx_free call that was mistakenly removed.

Change-Id: Ib662933a8697a4efb8534b5b9b762ee6c2777459

vp8/encoder/onyx_if.c

index 1de7514d0d144ac67d5ef00609f963ef3f54ff5c..47c11acac627b26bbc3f3b8bb57489e783ee4e8b 100644 (file)
@@ -1106,6 +1106,9 @@ void vp8_alloc_compressor_data(VP8_COMP *cpi)
                                     width, height, VP8BORDERINPIXELS))
         vpx_internal_error(&cpi->common.error, VPX_CODEC_MEM_ERROR,
                            "Failed to allocate scaled source buffer");
+
+    vpx_free(cpi->tok);
+
     {
 #if CONFIG_REALTIME_ONLY & CONFIG_ONTHEFLY_BITPACKING
         unsigned int tokens = 8 * 24 * 16; /* one MB for each thread */