[MPlayer-cvslog] r33364 - trunk/playtree.c

reimar subversion at mplayerhq.hu
Wed May 4 22:27:38 CEST 2011


Author: reimar
Date: Wed May  4 22:27:38 2011
New Revision: 33364

Log:
Free playtree params.

Modified:
   trunk/playtree.c

Modified: trunk/playtree.c
==============================================================================
--- trunk/playtree.c	Wed May  4 22:13:25 2011	(r33363)
+++ trunk/playtree.c	Wed May  4 22:27:38 2011	(r33364)
@@ -68,7 +68,14 @@ play_tree_free(play_tree_t* pt, int chil
   for(iter = pt->child ; iter != NULL ; iter = iter->next)
     iter->parent = NULL;
 
-  //free(pt->params);
+  if (pt->params) {
+    int i;
+    for(i = 0 ; pt->params[i].name != NULL ; i++) {
+      free(pt->params[i].name);
+      free(pt->params[i].value);
+    }
+    free(pt->params);
+  }
   if(pt->files) {
     int i;
     for(i = 0 ; pt->files[i] != NULL ; i++)


More information about the MPlayer-cvslog mailing list