aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Vrátil <dvratil@redhat.com>2012-06-13 00:30:19 +0800
committerDan Vrátil <dvratil@redhat.com>2012-06-13 00:30:19 +0800
commit0c25f646c8e5d1e8f0617e14949e824de6e7f1fb (patch)
tree7aa9ae9ab2a6258ffc4bb2f9b3e81c380bd37fb2
parent2636ac8a2c6c2a0cf6e66dda64bbd2e2d3ee7c30 (diff)
downloadgsoc2013-evolution-0c25f646c8e5d1e8f0617e14949e824de6e7f1fb.tar.gz
gsoc2013-evolution-0c25f646c8e5d1e8f0617e14949e824de6e7f1fb.tar.zst
gsoc2013-evolution-0c25f646c8e5d1e8f0617e14949e824de6e7f1fb.zip
Bug #677607 - Closing Mail Browser emits critical warnings
-rw-r--r--e-util/e-stock-request.c3
-rw-r--r--modules/itip-formatter/e-mail-parser-itip.c6
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);