From de94e18f57a0dccbab76efb3d574c0485a9e3700 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 20 Jun 2011 17:26:13 +0400 Subject: [PATCH] Another fix with reload command. --- src/map.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/map.c b/src/map.c index c680aa287..e5e6d9145 100644 --- a/src/map.c +++ b/src/map.c @@ -1025,12 +1025,13 @@ remove_all_maps (void) /* First of all do synced read of data */ while (cur) { map = cur->data; - event_del (&map->ev); cur = g_list_next (cur); } g_list_free (maps); maps = NULL; - memory_pool_delete (map_pool); - map_pool = NULL; + if (map_pool != NULL) { + memory_pool_delete (map_pool); + map_pool = NULL; + } } -- 2.39.5