diff options
author | Hiroyuki Ikezoe <poincare@ikezoe.net> | 2007-07-26 20:32:42 +0800 |
---|---|---|
committer | Hiroyuki Ikezoe <hiikezoe@src.gnome.org> | 2007-07-26 20:32:42 +0800 |
commit | 02da0c1be03c343f193cee73579b090a825df5e4 (patch) | |
tree | b8800244a25c19eb618d377f66d6a1d0f904b4e7 /addressbook | |
parent | de6cb9b637c288797fc5a1c51b9020b1b017df2e (diff) | |
download | gsoc2013-evolution-02da0c1be03c343f193cee73579b090a825df5e4.tar gsoc2013-evolution-02da0c1be03c343f193cee73579b090a825df5e4.tar.gz gsoc2013-evolution-02da0c1be03c343f193cee73579b090a825df5e4.tar.bz2 gsoc2013-evolution-02da0c1be03c343f193cee73579b090a825df5e4.tar.lz gsoc2013-evolution-02da0c1be03c343f193cee73579b090a825df5e4.tar.xz gsoc2013-evolution-02da0c1be03c343f193cee73579b090a825df5e4.tar.zst gsoc2013-evolution-02da0c1be03c343f193cee73579b090a825df5e4.zip |
Plugged memory leaks.
2007-07-26 Hiroyuki Ikezoe <poincare@ikezoe.net>
* gui/contact-editor/e-contact-editor.c:
(e_contact_editor_create_source_option_menu):
* gui/contact-editor/e-contact-quick-add.c: (build_quick_add_dialog):
* gui/component/addressbook-config.c: (addressbook_config_edit_source):
Plugged memory leaks.
svn path=/trunk/; revision=33849
Diffstat (limited to 'addressbook')
-rw-r--r-- | addressbook/ChangeLog | 8 | ||||
-rw-r--r-- | addressbook/gui/component/addressbook-config.c | 1 | ||||
-rw-r--r-- | addressbook/gui/contact-editor/e-contact-editor.c | 1 | ||||
-rw-r--r-- | addressbook/gui/contact-editor/e-contact-quick-add.c | 1 |
4 files changed, 11 insertions, 0 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index c232ee50a6..f59f5c09c0 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,5 +1,13 @@ 2007-07-26 Hiroyuki Ikezoe <poincare@ikezoe.net> + * gui/contact-editor/e-contact-editor.c: + (e_contact_editor_create_source_option_menu): + * gui/contact-editor/e-contact-quick-add.c: (build_quick_add_dialog): + * gui/component/addressbook-config.c: (addressbook_config_edit_source): + Plugged memory leaks. + +2007-07-26 Hiroyuki Ikezoe <poincare@ikezoe.net> + * gui/widgets/e-minicard.c: (add_email_field): Plugged memory leak. 2007-07-20 Claude Paroz <claude@2xlibre.net> diff --git a/addressbook/gui/component/addressbook-config.c b/addressbook/gui/component/addressbook-config.c index 320a17e386..b9dd4adb20 100644 --- a/addressbook/gui/component/addressbook-config.c +++ b/addressbook/gui/component/addressbook-config.c @@ -1162,6 +1162,7 @@ addressbook_config_edit_source (GtkWidget *parent, ESource *source) l = e_source_list_peek_groups(sdialog->source_list); if (!l) { g_warning ("Address Book source groups are missing! Check your GConf setup."); + g_object_unref (gconf); g_free (sdialog); return NULL; } diff --git a/addressbook/gui/contact-editor/e-contact-editor.c b/addressbook/gui/contact-editor/e-contact-editor.c index babd645b81..6d9d2dffe4 100644 --- a/addressbook/gui/contact-editor/e-contact-editor.c +++ b/addressbook/gui/contact-editor/e-contact-editor.c @@ -3843,6 +3843,7 @@ e_contact_editor_create_source_option_menu (gchar *name, menu = e_source_option_menu_new (source_list); g_object_unref (source_list); + g_object_unref (gconf_client); gtk_widget_show (menu); return menu; diff --git a/addressbook/gui/contact-editor/e-contact-quick-add.c b/addressbook/gui/contact-editor/e-contact-quick-add.c index 044153a6c3..82f45104f5 100644 --- a/addressbook/gui/contact-editor/e-contact-quick-add.c +++ b/addressbook/gui/contact-editor/e-contact-quick-add.c @@ -318,6 +318,7 @@ build_quick_add_dialog (QuickAdd *qa) gconf_client = gconf_client_get_default (); source_list = e_source_list_new_for_gconf (gconf_client, "/apps/evolution/addressbook/sources"); + g_object_unref (gconf_client); qa->option_menu = e_source_option_menu_new (source_list); book = e_book_new_default_addressbook (NULL); e_source_option_menu_select (E_SOURCE_OPTION_MENU (qa->option_menu), e_book_get_source(book)); |