[MPlayer-cvslog] r35626 - trunk/libaf/af_export.c

upsuper subversion at mplayerhq.hu
Sun Dec 9 03:22:09 CET 2012


Author: upsuper
Date: Sun Dec  9 03:22:08 2012
New Revision: 35626

Log:
Fix a wrong condition.

Modified:
   trunk/libaf/af_export.c

Modified: trunk/libaf/af_export.c
==============================================================================
--- trunk/libaf/af_export.c	Fri Dec  7 15:33:46 2012	(r35625)
+++ trunk/libaf/af_export.c	Sun Dec  9 03:22:08 2012	(r35626)
@@ -74,7 +74,7 @@ static int control(struct af_instance_s*
     int mapsize;
 
     // Free previous buffers
-    if (s->buf)
+    if (s->buf[0])
       free(s->buf[0]);
 
     // unmap previous area
@@ -183,7 +183,7 @@ static void uninit( struct af_instance_s
 
   if(af->setup){
     af_export_t* s = af->setup;
-    if (s->buf)
+    if (s->buf[0])
       free(s->buf[0]);
 
     // Free mmaped area


More information about the MPlayer-cvslog mailing list