[MPlayer-cvslog] r34687 - in trunk/gui/util: list.c list.h

ib subversion at mplayerhq.hu
Sat Feb 11 21:42:20 CET 2012


Author: ib
Date: Sat Feb 11 21:42:20 2012
New Revision: 34687

Log:
Add code to free the URL list items.

Modified:
   trunk/gui/util/list.c
   trunk/gui/util/list.h

Modified: trunk/gui/util/list.c
==============================================================================
--- trunk/gui/util/list.c	Sat Feb 11 18:21:14 2012	(r34686)
+++ trunk/gui/util/list.c	Sat Feb 11 21:42:20 2012	(r34687)
@@ -187,6 +187,13 @@ void *listSet(int cmd, void *vparam)
             urlList = url_item;
         }
         return NULL;
+
+    case gtkDelURL:
+        while (urlList) {
+            free(urlList->url);
+            urlList = urlList->next;
+        }
+        return NULL;
     }
 
     return NULL;

Modified: trunk/gui/util/list.h
==============================================================================
--- trunk/gui/util/list.h	Sat Feb 11 18:21:14 2012	(r34686)
+++ trunk/gui/util/list.h	Sat Feb 11 21:42:20 2012	(r34687)
@@ -24,6 +24,7 @@
 #define gtkGetPrevPlItem 7
 #define gtkGetCurrPlItem 8
 #define gtkDelPl         9
+#define gtkDelURL        10
 #define gtkDelCurrPlItem 23
 #define gtkInsertPlItem  24
 #define gtkSetCurrPlItem 25


More information about the MPlayer-cvslog mailing list