shithub: aacenc

Download patch

ref: 7bcbeb7851fbeb7a2093cedcf7867c4241168d09
parent: e01a1562364120f68a8d2f6b3ecc7702cf25474e
author: menno <menno>
date: Tue Oct 8 14:53:02 EDT 2002

Fixed some memory leakage

--- a/libfaac/frame.c
+++ b/libfaac/frame.c
@@ -16,7 +16,7 @@
  * License along with this library; if not, write to the Free Software
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  *
- * $Id: frame.c,v 1.29 2002/08/19 16:34:43 knik Exp $
+ * $Id: frame.c,v 1.30 2002/10/08 18:53:01 menno Exp $
  */
 
 /*
@@ -259,6 +259,7 @@
         if (hEncoder->ltpTimeBuff[channel]) FreeMemory(hEncoder->ltpTimeBuff[channel]);
         if (hEncoder->sampleBuff[channel]) FreeMemory(hEncoder->sampleBuff[channel]);
         if (hEncoder->nextSampleBuff[channel]) FreeMemory(hEncoder->nextSampleBuff[channel]);
+		if (hEncoder->next2SampleBuff[channel]) FreeMemory (hEncoder>next2SampleBuff[channel]);
     }
 
     /* Free handle */
@@ -656,6 +657,9 @@
 
 /*
 $Log: frame.c,v $
+Revision 1.30  2002/10/08 18:53:01  menno
+Fixed some memory leakage
+
 Revision 1.29  2002/08/19 16:34:43  knik
 added one additional flush frame
 fixed sample buffer memory allocation
--- a/libfaac/psychiso.c
+++ b/libfaac/psychiso.c
@@ -16,7 +16,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  *
- * $Id: psychiso.c,v 1.2 2002/08/21 16:54:26 knik Exp $
+ * $Id: psychiso.c,v 1.3 2002/10/08 18:53:02 menno Exp $
  */
 
 #include <stdlib.h>
@@ -419,6 +419,8 @@
 	  if (psyInfo[channel].data)
 	    FreeMemory(psyInfo[channel].data);
 	}
+
+    if (gpsyInfo->data) FreeMemory(gpsyInfo->data);
 }
 
 /* Do psychoacoustical analysis */