]> granicus.if.org Git - libvpx/commitdiff
Free memory allocated by daala_ec encoder.
authorNathan E. Egge <negge@mozilla.com>
Fri, 14 Oct 2016 11:07:03 +0000 (07:07 -0400)
committerYaowu Xu <yaowu@google.com>
Wed, 19 Oct 2016 22:14:27 +0000 (15:14 -0700)
Free the two memory buffers allocated by the daala_ec encoder when
 calling od_ec_enc_clear() from aom_daala_stop_encode().

Change-Id: If20e86374ea29e51ee59111012905e56039dd4cc

aom_dsp/daalaboolwriter.c

index 15a3af7a8fcb0a1538cbd5e7d16af3fb867b9690..0ba8f6ab8b215367c3fe75641c9552a00310c568 100644 (file)
@@ -28,4 +28,5 @@ void aom_daala_stop_encode(daala_writer *br) {
      Must always be added, so that rawbits knows the exact length of the
       bitstream. */
   br->buffer[br->pos++] = 0;
+  od_ec_enc_clear(&br->ec);
 }