[MPlayer-cvslog] r34689 - trunk/gui/util/list.c

ib subversion at mplayerhq.hu
Sat Feb 11 22:05:34 CET 2012


Author: ib
Date: Sat Feb 11 22:05:34 2012
New Revision: 34689

Log:
Fix bug in freeing URL list items.

The urlItem structure wasn't freed.

Modified:
   trunk/gui/util/list.c

Modified: trunk/gui/util/list.c
==============================================================================
--- trunk/gui/util/list.c	Sat Feb 11 21:43:02 2012	(r34688)
+++ trunk/gui/util/list.c	Sat Feb 11 22:05:34 2012	(r34689)
@@ -190,8 +190,12 @@ void *listSet(int cmd, void *vparam)
 
     case gtkDelURL:
         while (urlList) {
+            urlItem *next = urlList->next;
+
             free(urlList->url);
-            urlList = urlList->next;
+            free(urlList);
+
+            urlList = next;
         }
         return NULL;
     }


More information about the MPlayer-cvslog mailing list