Fix parameters on iochan_destroy_real
authorDennis Schafroth <dennis@indexdata.com>
Wed, 6 Apr 2011 08:10:25 +0000 (10:10 +0200)
committerDennis Schafroth <dennis@indexdata.com>
Wed, 6 Apr 2011 08:10:25 +0000 (10:10 +0200)
src/eventl.c

index 840b735..562587c 100644 (file)
@@ -336,7 +336,7 @@ static int event_loop(iochan_man_t man, IOCHAN *iochans) {
         for (nextp = iochans; *nextp;) {
             IOCHAN p = *nextp;
             if (p->destroyed && p->thread_users == 0) {
-                *nextp = iochan_destroy_real(nextp);
+                *nextp = iochan_destroy_real(*nextp);
             } else
                 nextp = &p->next;
         }