diff options
author | Dan Vrátil <dvratil@redhat.com> | 2012-04-10 23:49:37 +0800 |
---|---|---|
committer | Dan Vrátil <dvratil@redhat.com> | 2012-04-10 23:49:37 +0800 |
commit | 6257bf96767f2b626f8444b7bc93d25490a711c1 (patch) | |
tree | 1e64b31b5506f045a85b43dff67ec0143627be9b | |
parent | b13299b162ca79ee1a568c83b628d351f19288f5 (diff) | |
download | gsoc2013-evolution-6257bf96767f2b626f8444b7bc93d25490a711c1.tar.gz gsoc2013-evolution-6257bf96767f2b626f8444b7bc93d25490a711c1.tar.zst gsoc2013-evolution-6257bf96767f2b626f8444b7bc93d25490a711c1.zip |
Fix a memory leak
-rw-r--r-- | mail/e-mail-reader.c | 4 |
1 files changed, 3 insertions, 1 deletions
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) { |