From 84727e6645d415279fde3e2f20016d62bd40950f Mon Sep 17 00:00:00 2001 From: Sergio Villar Senin Date: Tue, 17 Mar 2009 19:29:42 +0000 Subject: [PATCH] Fixes leak 2/26 pmo-trunk-r8107 --- src/modest-ui-actions.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/modest-ui-actions.c b/src/modest-ui-actions.c index ecb7d75..ab4c62e 100644 --- a/src/modest-ui-actions.c +++ b/src/modest-ui-actions.c @@ -1358,7 +1358,7 @@ open_msg_performer(gboolean canceled, gpointer user_data) { ModestMailOperation *mail_op = NULL; - gchar *error_msg; + gchar *error_msg = NULL; ModestProtocolType proto; TnyConnectionStatus status; OpenMsgHelper *helper = NULL; @@ -1483,6 +1483,8 @@ open_msg_performer(gboolean canceled, /* Frees */ clean: + if (error_msg) + g_free (error_msg); if (mail_op) g_object_unref (mail_op); g_object_unref (account); -- 1.7.9.5