From 15a110013b50c53e4d943b9251ed94d0cbdfea85 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Sat, 15 Jan 2011 22:59:16 +0100 Subject: [PATCH] Don't delete events in event_del(), none of them are allocated with event_new(). --- src/event.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/event.c b/src/event.c index 36dab9f..03efc67 100644 --- a/src/event.c +++ b/src/event.c @@ -40,7 +40,7 @@ static int event_compare(const event_t *a, const event_t *b) { } void init_events(void) { - event_tree = splay_alloc_tree((splay_compare_t) event_compare, (splay_action_t) free_event); + event_tree = splay_alloc_tree((splay_compare_t) event_compare, NULL); } void exit_events(void) { -- 2.25.1