[evolution] Bug #677607 - Closing Mail Browser emits critical warnings



commit 0c25f646c8e5d1e8f0617e14949e824de6e7f1fb
Author: Dan VrÃtil <dvratil redhat com>
Date:   Tue Jun 12 18:30:19 2012 +0200

    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 5a1fbc9..ef55631 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 f8000aa..6324cd2 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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]