From bf49b669a9b30143cb6583a8f32f141b18709d0b Mon Sep 17 00:00:00 2001 From: Marc Alexander Lehmann Date: Sun, 24 Oct 2010 19:15:52 +0000 Subject: [PATCH] *** empty log message *** --- ev.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ev.c b/ev.c index 774dd69..066cd88 100644 --- a/ev.c +++ b/ev.c @@ -3594,6 +3594,8 @@ ev_cleanup_start (EV_P_ ev_cleanup *w) array_needsize (ev_cleanup *, cleanups, cleanupmax, cleanupcnt, EMPTY2); cleanups [cleanupcnt - 1] = w; + /* cleanup watchers should never keep a refcount on the loop */ + ev_unref (EV_A); EV_FREQUENT_CHECK; } @@ -3605,6 +3607,7 @@ ev_cleanup_stop (EV_P_ ev_cleanup *w) return; EV_FREQUENT_CHECK; + ev_ref (EV_A); { int active = ev_active (w);