[ekg2-commit] r3905 - trunk/ekg: trunk/ekg/ekg.c

SVN commit svn w toxygen.net
Sob, 15 Mar 2008, 14:31:49 CET


Author: peres
Date: 2008-03-15 14:31:48 +0100 (Sat, 15 Mar 2008)
New Revision: 3905

Modified:
   trunk/ekg/ekg.c
Log:

This shall fix idles (double free).



Modified: trunk/ekg/ekg.c
===================================================================
--- trunk/ekg/ekg.c	2008-03-15 13:11:53 UTC (rev 3904)
+++ trunk/ekg/ekg.c	2008-03-15 13:31:48 UTC (rev 3905)
@@ -369,9 +369,10 @@
 			 *
 			 *  yeah, i know it can be do better. note: it's just for gtk.. maybe later we have prios and so (and ekg2 become operation system with scheduler)
 			 */
+			idle_t *idler = idles;
 
-			idle_handle(idles);
-			LIST_REMOVE2(&idles, idles, 0);
+			LIST_UNLINK2(&idles, idles);
+			idle_handle(idler);
 
 			/* Here I think we can do return; coz select() return 0 when nothing happen on given fds */
 			/* but to avoid regression on broken systems */



Więcej informacji o liście dyskusyjnej ekg2-commit