[MPlayer-cvslog] r28847 - trunk/libaf/af_resample.c

reimar subversion at mplayerhq.hu
Fri Mar 6 12:46:07 CET 2009


Author: reimar
Date: Fri Mar  6 12:46:06 2009
New Revision: 28847

Log:
Free af->setup and contents in af_resample uninit function.

Modified:
   trunk/libaf/af_resample.c

Modified: trunk/libaf/af_resample.c
==============================================================================
--- trunk/libaf/af_resample.c	Fri Mar  6 12:42:45 2009	(r28846)
+++ trunk/libaf/af_resample.c	Fri Mar  6 12:46:06 2009	(r28847)
@@ -305,6 +305,13 @@ static int control(struct af_instance_s*
 // Deallocate memory 
 static void uninit(struct af_instance_s* af)
 {
+  af_resample_t *s = af->setup;
+  if (s) {
+    if (s->xq) free(s->xq[0]);
+    free(s->xq);
+    free(s->w);
+    free(s);
+  }
   if(af->data)
     free(af->data->audio);
   free(af->data);



More information about the MPlayer-cvslog mailing list