aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook
diff options
context:
space:
mode:
authorChris Heath <chris@heathens.co.nz>2006-06-09 10:21:03 +0800
committerAndre Klapper <aklapper@src.gnome.org>2006-06-09 10:21:03 +0800
commit56c45fcfabb6a832d5e044fcde87e8ec3b25367b (patch)
tree4b187b43f4d0c02f7259e66258b1293b164d8262 /addressbook
parent4602caf9bcec384ef8a7b430584b7ffc68aea327 (diff)
downloadgsoc2013-evolution-56c45fcfabb6a832d5e044fcde87e8ec3b25367b.tar
gsoc2013-evolution-56c45fcfabb6a832d5e044fcde87e8ec3b25367b.tar.gz
gsoc2013-evolution-56c45fcfabb6a832d5e044fcde87e8ec3b25367b.tar.bz2
gsoc2013-evolution-56c45fcfabb6a832d5e044fcde87e8ec3b25367b.tar.lz
gsoc2013-evolution-56c45fcfabb6a832d5e044fcde87e8ec3b25367b.tar.xz
gsoc2013-evolution-56c45fcfabb6a832d5e044fcde87e8ec3b25367b.tar.zst
gsoc2013-evolution-56c45fcfabb6a832d5e044fcde87e8ec3b25367b.zip
Fix memory leak. Fixes bug #335423.
2006-06-09 Chris Heath <chris@heathens.co.nz> * addressbook/gui/widgets/eab-popup-control.c (eab_popup_control_set_free_form): * addressbook/gui/contact-editor/e-contact-quick-add.c (quick_add_merge_contact): * e-util/e-plugin.c (ep_construct): * mail/message-list.c (message_list_finalise): * plugins/itip-view.c (itip_view_destroy): Fix memory leak. Fixes bug #335423. svn path=/trunk/; revision=32101
Diffstat (limited to 'addressbook')
-rw-r--r--addressbook/ChangeLog7
-rw-r--r--addressbook/gui/contact-editor/e-contact-quick-add.c1
-rw-r--r--addressbook/gui/widgets/eab-popup-control.c2
3 files changed, 9 insertions, 1 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index 04ddcca937..e6d4130c33 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,3 +1,10 @@
+2006-06-09 Chris Heath <chris@heathens.co.nz>
+
+ * gui/widgets/eab-popup-control.c (eab_popup_control_set_free_form): Fix
+ memory leak
+ * gui/contact-editor/e-contact-quick-add.c (quick_add_merge_contact): Ditto.
+ Fixes bug #335423.
+
2006-05-25 Devashish Sharma <sdevashish@novell.com>
* gui/contact-editor/e-contact-quick-add.c : Right click add to
diff --git a/addressbook/gui/contact-editor/e-contact-quick-add.c b/addressbook/gui/contact-editor/e-contact-quick-add.c
index 66144a65d7..ec70ac360e 100644
--- a/addressbook/gui/contact-editor/e-contact-quick-add.c
+++ b/addressbook/gui/contact-editor/e-contact-quick-add.c
@@ -138,7 +138,6 @@ merge_cb (EBook *book, EBookStatus status, gpointer closure)
static void
quick_add_merge_contact (QuickAdd *qa)
{
- quick_add_ref (qa);
addressbook_load (qa->book, merge_cb, qa);
}
diff --git a/addressbook/gui/widgets/eab-popup-control.c b/addressbook/gui/widgets/eab-popup-control.c
index b682e189a2..bf8a26b002 100644
--- a/addressbook/gui/widgets/eab-popup-control.c
+++ b/addressbook/gui/widgets/eab-popup-control.c
@@ -208,6 +208,8 @@ eab_popup_control_set_free_form (EABPopupControl *pop, const gchar *txt)
gchar *email = g_strndup (lt+1, gt-lt-1);
eab_popup_control_set_name (pop, name);
eab_popup_control_set_email (pop, email);
+ g_free(name);
+ g_free(email);
return TRUE;
}