aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook
diff options
context:
space:
mode:
authorDan Vrátil <dvratil@redhat.com>2011-05-05 22:40:41 +0800
committerMatthew Barnes <mbarnes@redhat.com>2011-05-05 22:40:41 +0800
commitaae601b3bae2a66da4e50cd772c519847cf9ebfb (patch)
tree2e2bcafe75a909308b17106539021f05b5a5e1c8 /addressbook
parent8195647e9b92dc3928a66893e8ac1fba88019b66 (diff)
downloadgsoc2013-evolution-aae601b3bae2a66da4e50cd772c519847cf9ebfb.tar.gz
gsoc2013-evolution-aae601b3bae2a66da4e50cd772c519847cf9ebfb.tar.zst
gsoc2013-evolution-aae601b3bae2a66da4e50cd772c519847cf9ebfb.zip
Bug 649381 - Memory leaks in contact editor
Diffstat (limited to 'addressbook')
-rw-r--r--addressbook/gui/contact-editor/e-contact-editor.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/addressbook/gui/contact-editor/e-contact-editor.c b/addressbook/gui/contact-editor/e-contact-editor.c
index 4c0bf2e905..1e3e0b5bcc 100644
--- a/addressbook/gui/contact-editor/e-contact-editor.c
+++ b/addressbook/gui/contact-editor/e-contact-editor.c
@@ -1028,6 +1028,8 @@ fill_in_email (EContactEditor *editor)
get_email_location (attr));
record_n++;
+
+ g_free (email_address);
}
}
@@ -1346,6 +1348,8 @@ fill_in_phone (EContactEditor *editor)
editor, slot, phone, get_phone_type (attr));
record_n++;
+
+ g_free (phone);
}
}
@@ -1674,6 +1678,8 @@ fill_in_im (EContactEditor *editor)
get_im_location (attr));
record_n++;
+
+ g_free (im_name);
}
}
}
@@ -2649,6 +2655,7 @@ fill_in_simple (EContactEditor *editor)
title = g_strdup_printf (_("Contact Editor - %s"), filename);
gtk_window_set_title (GTK_WINDOW (editor->app), title);
g_free (title);
+ g_free (filename);
}
else
gtk_window_set_title (GTK_WINDOW (editor->app), _("Contact Editor"));