From 487b2a26bd8a0641d1838147ef551541710a8080 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 7 Jun 2012 19:30:37 +0000 Subject: -fixing #2411 --- src/lib/eventloop.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/lib/eventloop.c b/src/lib/eventloop.c index f0a1f87c..d7a42055 100644 --- a/src/lib/eventloop.c +++ b/src/lib/eventloop.c @@ -921,8 +921,11 @@ GNUNET_GTK_main_loop_start (const char *binary_name, const char *binary_help, g_object_unref (G_OBJECT (ml.builder)); if (NULL != ml.gml) g_main_loop_unref (ml.gml); - GNUNET_CONFIGURATION_destroy (ml.cfg); - ml.cfg = NULL; + if (NULL != ml.cfg) + { + GNUNET_CONFIGURATION_destroy (ml.cfg); + ml.cfg = NULL; + } GNUNET_free_non_null (ml.cfgfile); return ret; } -- cgit v1.2.3