shithub: aacdec

Download patch

ref: 3def44dfa46085e1d8ccaf9688a6817853bfcee9
parent: c71144243747dd599cb9ff73fb70219adae968cb
author: menno <menno>
date: Wed Jan 16 03:18:30 EST 2002

Buffer deallocation

--- a/frontend/main.c
+++ b/frontend/main.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: main.c,v 1.6 2002/01/15 19:55:09 menno Exp $
+** $Id: main.c,v 1.7 2002/01/16 08:18:30 menno Exp $
 **/
 
 #ifdef _WIN32
@@ -416,6 +416,8 @@
 		}
 
         sample_buffer = faacDecDecode(hDecoder, &frameInfo, buffer);
+
+        if (buffer) free(buffer);
 
         percent = min((int)(sampleId*100)/numSamples, 100);
         if (percent > old_percent)