shithub: aacenc

Download patch

ref: 8157d7aaf50eb81f9eb7228a356e4fcd854447db
parent: 79daa3f1147e538231666228b45bbe26fd3c9e2e
author: sur <sur>
date: Wed Feb 2 02:53:20 EST 2005

Fixed bug in HuffmanEnd.

--- a/libfaac/huffman.c
+++ b/libfaac/huffman.c
@@ -23,7 +23,7 @@
 
 ***********/
 /*
- * $Id: huffman.c,v 1.10 2004/07/12 08:46:43 corrados Exp $
+ * $Id: huffman.c,v 1.11 2005/02/02 07:53:20 sur Exp $
  */
 
 #include <math.h>
@@ -57,6 +57,10 @@
     for (channel = 0; channel < numChannels; channel++) {
         if (coderInfo[channel].data) FreeMemory(coderInfo[channel].data);
         if (coderInfo[channel].len) FreeMemory(coderInfo[channel].len);
+
+#ifdef DRM
+        if (coderInfo[channel].num_data_cw) FreeMemory(coderInfo[channel].num_data_cw);
+#endif
     }
 }