diff options
author | root <root> | 2010-10-24 19:15:52 +0000 |
---|---|---|
committer | root <root> | 2010-10-24 19:15:52 +0000 |
commit | 8a1a04e426d7c5d6cf85f306dac741efee055607 (patch) | |
tree | c5da01189103296d3a0d65cb6cc0816f425773ef | |
parent | 85f13ac497130415b7dc7f9555d0980a6b911a12 (diff) |
*** empty log message ***
-rw-r--r-- | ev.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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); |