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

SVN commit svn w toxygen.net
Nie, 9 Mar 2008, 12:55:19 CET


Author: peres
Date: 2008-03-09 12:55:18 +0100 (Sun, 09 Mar 2008)
New Revision: 3876

Modified:
   trunk/ekg/ekg.c
Log:

Infinite loop on exit.



Modified: trunk/ekg/ekg.c
===================================================================
--- trunk/ekg/ekg.c	2008-03-09 11:51:11 UTC (rev 3875)
+++ trunk/ekg/ekg.c	2008-03-09 11:55:18 UTC (rev 3876)
@@ -1109,10 +1109,10 @@
 	}
 
 	{
-		plugin_t *p;
+		plugin_t *p, *next;
 
-		for (p = plugins; p; ) {
-			plugin_t *next = p->next;
+		for (p = plugins; p; p = next) {
+			next = p->next;
 
 			if (p->pclass != PLUGIN_UI)
 				continue;
@@ -1120,8 +1120,6 @@
 			p->destroy();
 
 //			if (p->dl) ekg2_dlclose(p->dl);
-			
-			p = next;
 		}
 	}
 	LIST_DESTROY2(watches, NULL);	 watches = NULL;



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