aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-config.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/mail-config.c')
-rw-r--r--mail/mail-config.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/mail/mail-config.c b/mail/mail-config.c
index 28cbca3f17..6a60a4855e 100644
--- a/mail/mail-config.c
+++ b/mail/mail-config.c
@@ -923,8 +923,7 @@ mail_config_set_show_preview (const char *uri, gboolean value)
config->preview_hash = g_hash_table_new (g_str_hash, g_str_equal);
if (g_hash_table_lookup_extended (config->preview_hash, dbkey, &key, &val)) {
- g_hash_table_insert (config->preview_hash, dbkey,
- GINT_TO_POINTER (value));
+ val = GINT_TO_POINTER (value);
g_free (dbkey);
} else {
g_hash_table_insert (config->preview_hash, dbkey,