[evolution/gnome-3-10] Bug #708349 - Memory leaks around mail config



commit 8d80bb47de81b50e883d4534e7dd6e8b64de5cff
Author: Milan Crha <mcrha redhat com>
Date:   Mon Sep 23 17:43:18 2013 +0200

    Bug #708349 - Memory leaks around mail config

 mail/e-mail-config-identity-page.c |    1 +
 mail/e-mail-config-security-page.c |    3 +++
 mail/e-mail-config-sidebar.c       |    2 ++
 3 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/mail/e-mail-config-identity-page.c b/mail/e-mail-config-identity-page.c
index 5db923d..23aa2dd 100644
--- a/mail/e-mail-config-identity-page.c
+++ b/mail/e-mail-config-identity-page.c
@@ -435,6 +435,7 @@ mail_config_identity_page_constructed (GObject *object)
        gtk_misc_set_alignment (GTK_MISC (widget), 0.0, 0.5);
        gtk_grid_attach (GTK_GRID (container), widget, 0, 0, 3, 1);
        gtk_widget_show (widget);
+       g_free (markup);
 
        text = _("Re_ply-To:");
        widget = gtk_label_new_with_mnemonic (text);
diff --git a/mail/e-mail-config-security-page.c b/mail/e-mail-config-security-page.c
index a41e251..8d0dcc8 100644
--- a/mail/e-mail-config-security-page.c
+++ b/mail/e-mail-config-security-page.c
@@ -264,6 +264,7 @@ mail_config_security_page_constructed (GObject *object)
        gtk_misc_set_alignment (GTK_MISC (widget), 0.0, 0.5);
        gtk_grid_attach (GTK_GRID (container), widget, 0, 0, 1, 1);
        gtk_widget_show (widget);
+       g_free (markup);
 
        text = _("_Do not sign meeting requests (for Outlook compatibility)");
        widget = gtk_check_button_new_with_mnemonic (text);
@@ -294,6 +295,7 @@ mail_config_security_page_constructed (GObject *object)
        gtk_misc_set_alignment (GTK_MISC (widget), 0.0, 0.5);
        gtk_grid_attach (GTK_GRID (container), widget, 0, 0, 2, 1);
        gtk_widget_show (widget);
+       g_free (markup);
 
        text = _("OpenPGP _Key ID:");
        widget = gtk_label_new_with_mnemonic (text);
@@ -413,6 +415,7 @@ mail_config_security_page_constructed (GObject *object)
        gtk_misc_set_alignment (GTK_MISC (widget), 0.0, 0.5);
        gtk_grid_attach (GTK_GRID (container), widget, 0, 0, 4, 1);
        gtk_widget_show (widget);
+       g_free (markup);
 
        text = _("Sig_ning certificate:");
        widget = gtk_label_new_with_mnemonic (text);
diff --git a/mail/e-mail-config-sidebar.c b/mail/e-mail-config-sidebar.c
index 91d2dba..8a837cd 100644
--- a/mail/e-mail-config-sidebar.c
+++ b/mail/e-mail-config-sidebar.c
@@ -104,6 +104,8 @@ mail_config_sidebar_notebook_page_added (GtkNotebook *notebook,
        g_hash_table_insert (
                sidebar->priv->buttons_to_pages,
                g_object_ref (button), g_object_ref (page));
+
+       g_free (tab_label);
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]