diff options
author | Larry Ewing <lewing@ximian.com> | 2003-06-14 12:34:20 +0800 |
---|---|---|
committer | Larry Ewing <lewing@src.gnome.org> | 2003-06-14 12:34:20 +0800 |
commit | 1761fff007b20c765181f7e89c1cb4fd84c699e3 (patch) | |
tree | cf9abbc667602f494d2eaf5d2054980c4e30585b /addressbook/gui/component/addressbook.c | |
parent | b3b0f96535867fa18399c4769fdd6bf2168ba144 (diff) | |
download | gsoc2013-evolution-1761fff007b20c765181f7e89c1cb4fd84c699e3.tar gsoc2013-evolution-1761fff007b20c765181f7e89c1cb4fd84c699e3.tar.gz gsoc2013-evolution-1761fff007b20c765181f7e89c1cb4fd84c699e3.tar.bz2 gsoc2013-evolution-1761fff007b20c765181f7e89c1cb4fd84c699e3.tar.lz gsoc2013-evolution-1761fff007b20c765181f7e89c1cb4fd84c699e3.tar.xz gsoc2013-evolution-1761fff007b20c765181f7e89c1cb4fd84c699e3.tar.zst gsoc2013-evolution-1761fff007b20c765181f7e89c1cb4fd84c699e3.zip |
Fix lots of leaks, update for correct use of g_object_get. Some misc
2003-06-13 Larry Ewing <lewing@ximian.com>
* gui/component/addressbook.c:
* gui/component/e-cardlist-model.c:
* gui/component/select-names/e-select-names-text-model.c:
* gui/contact-editor/e-contact-editor.c:
* gui/contact-editor/e-contact-save-as.c:
* gui/contact-list-editor/e-contact-list-editor.c:
* gui/widgets/e-addressbook-table-adapter.c:
* gui/widgets/e-addressbook-util.c:
* gui/widgets/e-addressbook-view.c:
* gui/widgets/e-minicard-view.c:
* gui/widgets/e-minicard.c: Fix lots of leaks, update for correct
use of g_object_get. Some misc cleanups.
svn path=/trunk/; revision=21442
Diffstat (limited to 'addressbook/gui/component/addressbook.c')
-rw-r--r-- | addressbook/gui/component/addressbook.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/addressbook/gui/component/addressbook.c b/addressbook/gui/component/addressbook.c index c770aaa8f5..b21c70a83d 100644 --- a/addressbook/gui/component/addressbook.c +++ b/addressbook/gui/component/addressbook.c @@ -1047,7 +1047,7 @@ compare_subitems (const void *a, const void *b) static void make_suboptions (AddressbookView *view) { - ESearchBarSubitem *subitems; + ESearchBarSubitem *subitems, *s; ECategoriesMasterList *master_list; gint i, N; @@ -1072,6 +1072,12 @@ make_suboptions (AddressbookView *view) qsort (subitems + 1, N, sizeof (subitems[0]), compare_subitems); e_search_bar_set_suboption (view->search, ESB_CATEGORY, subitems); + + for (s = subitems; s->id != -1; s++) { + if (s->text) + g_free (s->text); + } + g_free (subitems); } static void |