From 07a30d19ef7195fc361d41d9de3debc4562277c3 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 14 Mar 2009 04:45:39 +0000 Subject: *** empty log message *** --- Changes | 4 ++++ ev.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Changes b/Changes index e7d63ce..cacef1d 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,9 @@ Revision history for libev, a high-performance and full-featured event loop. + - correctly zero the idx values for arrays, so destroying and + reinitialising the default loop actually works (patch by + Malek Hadj-Ali). + 3.53 Sun Feb 15 02:38:20 CET 2009 - fix a bug in event pipe creation on win32 that would cause a failed assertion on event loop creation (patch by Malek Hadj-Ali). diff --git a/ev.c b/ev.c index 7b8a92c..57b1f31 100644 --- a/ev.c +++ b/ev.c @@ -678,7 +678,7 @@ array_realloc (int elem, void *base, int *cur, int cnt) #endif #define array_free(stem, idx) \ - ev_free (stem ## s idx); stem ## cnt idx = stem ## max idx = 0; + ev_free (stem ## s idx); stem ## cnt idx = stem ## max idx = 0; stem ## s idx = 0 /*****************************************************************************/ -- cgit v1.2.3