From 0c25f646c8e5d1e8f0617e14949e824de6e7f1fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20Vr=C3=A1til?= Date: Tue, 12 Jun 2012 18:30:19 +0200 Subject: Bug #677607 - Closing Mail Browser emits critical warnings --- e-util/e-stock-request.c | 3 +-- modules/itip-formatter/e-mail-parser-itip.c | 6 ++++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/e-util/e-stock-request.c b/e-util/e-stock-request.c index 5a1fbc9f07..ef556312ce 100644 --- a/e-util/e-stock-request.c +++ b/e-util/e-stock-request.c @@ -68,6 +68,7 @@ handle_stock_request (GSimpleAsyncResult *res, if (query) { a_size = g_hash_table_lookup (query, "size"); + g_hash_table_destroy (query); } else { a_size = NULL; } @@ -78,8 +79,6 @@ handle_stock_request (GSimpleAsyncResult *res, size = atoi (a_size); } - g_hash_table_destroy (query); - /* Try style context first */ context = gtk_style_context_new (); path = gtk_widget_path_new (); diff --git a/modules/itip-formatter/e-mail-parser-itip.c b/modules/itip-formatter/e-mail-parser-itip.c index f8000aa46f..6324cd25e1 100644 --- a/modules/itip-formatter/e-mail-parser-itip.c +++ b/modules/itip-formatter/e-mail-parser-itip.c @@ -81,8 +81,10 @@ mail_part_itip_free (EMailPart *mail_part) g_clear_object (&pitip->registry); for (i = 0; i < E_CAL_CLIENT_SOURCE_TYPE_LAST; i++) { - g_hash_table_destroy (pitip->clients[i]); - pitip->clients[i] = NULL; + if (pitip->clients[i]) { + g_hash_table_destroy (pitip->clients[i]); + pitip->clients[i] = NULL; + } } g_free (pitip->vcalendar); -- cgit v1.2.3