summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Changes4
-rw-r--r--ev.c2
2 files changed, 5 insertions, 1 deletions
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
/*****************************************************************************/