From 338f6a0a31203049342054399477fd130bdc206a Mon Sep 17 00:00:00 2001 From: Jack Moffitt Date: Fri, 5 Apr 2002 16:33:35 +0000 Subject: [PATCH] Oddsock finally found the win32 crash bug. _event_listeners wasn't being initialized (the first time it was NULL). After the server is restarted it retained a pointer to freed memory. We should have been initializing this anyway. svn path=/trunk/icecast/; revision=3220 --- src/stats.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/stats.c b/src/stats.c index 47b52817..a3138362 100644 --- a/src/stats.c +++ b/src/stats.c @@ -59,6 +59,8 @@ static void _free_event(stats_event_t *event); void stats_initialize() { + _event_listeners = NULL; + /* set up global struct */ _stats.global_tree = avl_tree_new(_compare_stats, NULL); _stats.source_tree = avl_tree_new(_compare_source_stats, NULL);