aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/component/addressbook.c
diff options
context:
space:
mode:
Diffstat (limited to 'addressbook/gui/component/addressbook.c')
-rw-r--r--addressbook/gui/component/addressbook.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/addressbook/gui/component/addressbook.c b/addressbook/gui/component/addressbook.c
index eb7cd4afb5..17e6ed4e3d 100644
--- a/addressbook/gui/component/addressbook.c
+++ b/addressbook/gui/component/addressbook.c
@@ -898,12 +898,10 @@ addressbook_factory_new_control (void)
subitems[0].translate = FALSE;
for (i=0; i<N; ++i) {
- char *category;
+ const char *category = e_categories_master_list_nth (master_list, i);
subitems[i+1].id = i;
- category = (char *) e_categories_master_list_nth (master_list, i);
subitems[i+1].text = e_utf8_to_locale_string (category);
- g_free (category);
subitems[i+1].translate = FALSE;
}
subitems[N+1].id = -1;