From 6257bf96767f2b626f8444b7bc93d25490a711c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20Vr=C3=A1til?= Date: Tue, 10 Apr 2012 17:49:37 +0200 Subject: Fix a memory leak --- mail/e-mail-reader.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mail/e-mail-reader.c b/mail/e-mail-reader.c index da1fdb5905..1f87703e2b 100644 --- a/mail/e-mail-reader.c +++ b/mail/e-mail-reader.c @@ -3095,7 +3095,9 @@ mail_reader_set_display_formatter_for_message (EMailReader *reader, if (!formatters) { formatters = g_hash_table_new_full (g_str_hash, g_str_equal, (GDestroyNotify) g_free, NULL); - g_object_set_data (G_OBJECT (session), "formatters", formatters); + g_object_set_data_full ( + G_OBJECT (session), "formatters", formatters, + (GDestroyNotify) g_hash_table_destroy); } if ((formatter = g_hash_table_lookup (formatters, mail_uri)) == NULL) { -- cgit v1.2.3