From d9f0d2fd21348c18388629388039846099ca140d Mon Sep 17 00:00:00 2001 From: Samuel Ortiz Date: Thu, 28 Jun 2012 19:22:48 +0200 Subject: [PATCH] p2p: Free all p2p plugins data before calling their exit routines The exit routine will delete the hash tables that free_server_data() might try to destroy as well, triggering a GLib warning. --- plugins/p2p.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/p2p.c b/plugins/p2p.c index 4f77732..c324faf 100644 --- a/plugins/p2p.c +++ b/plugins/p2p.c @@ -378,12 +378,12 @@ static void p2p_exit(void) { DBG(""); + g_list_free_full(server_list, free_server_data); + snep_exit(); npp_exit(); handover_exit(); - g_list_free_full(server_list, free_server_data); - near_device_driver_unregister(&p2p_driver); } -- 2.7.4