summaryrefslogtreecommitdiff
path: root/ev.c
diff options
context:
space:
mode:
Diffstat (limited to 'ev.c')
-rw-r--r--ev.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ev.c b/ev.c
index 9358364..bcb49b5 100644
--- a/ev.c
+++ b/ev.c
@@ -1640,6 +1640,8 @@ ev_default_destroy (void)
struct ev_loop *loop = ev_default_loop_ptr;
#endif
+ ev_default_loop_ptr = 0;
+
#ifndef _WIN32
ev_ref (EV_A); /* child watcher */
ev_signal_stop (EV_A_ &childev);