summaryrefslogtreecommitdiff
path: root/ev.c
diff options
context:
space:
mode:
authorroot <root>2010-10-24 19:38:20 +0000
committerroot <root>2010-10-24 19:38:20 +0000
commit58ef9d93fb27fd25038961a92993e81cc0bba455 (patch)
treeeb8ec457452728effb72f34b5a41992c8c764611 /ev.c
parent8a1a04e426d7c5d6cf85f306dac741efee055607 (diff)
*** empty log message ***
Diffstat (limited to 'ev.c')
-rw-r--r--ev.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ev.c b/ev.c
index 066cd88..b5b0c5f 100644
--- a/ev.c
+++ b/ev.c
@@ -1738,6 +1738,10 @@ ev_loop_destroy (EV_P)
{
int i;
+ /* mimic free (0) */
+ if (!EV_A)
+ return;
+
#if EV_CLEANUP_ENABLE
/* queue cleanup watchers (and execute them) */
if (expect_false (cleanupcnt))