aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2013-09-07 07:46:17 -0500
committerCharles Kerr <charles.kerr@canonical.com>2013-09-07 07:46:17 -0500
commitf1152966057612e552fb44528bb523e20a61fcac (patch)
treec4a7c0e91a7f104e85c7097d6746498ed44dbb66
parent88275c3ae0a002a50a594fb0193805e51f80060d (diff)
downloadayatana-indicator-datetime-f1152966057612e552fb44528bb523e20a61fcac.tar.gz
ayatana-indicator-datetime-f1152966057612e552fb44528bb523e20a61fcac.tar.bz2
ayatana-indicator-datetime-f1152966057612e552fb44528bb523e20a61fcac.zip
remove unnecessary strdup/free of the location menuitems' labels
-rw-r--r--src/service.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/service.c b/src/service.c
index 45d152c..03a2bb4 100644
--- a/src/service.c
+++ b/src/service.c
@@ -648,10 +648,8 @@ add_localtime_menuitem (GMenu * menu,
static void
add_calendar_menuitem (GMenu * menu)
{
- char * label;
GMenuItem * menu_item;
- label = g_strdup ("[calendar]");
menu_item = g_menu_item_new ("[calendar]", NULL);
g_menu_item_set_action_and_target_value (menu_item, "indicator.calendar", g_variant_new_int64(0));
g_menu_item_set_attribute (menu_item, "x-canonical-type", "s", "com.canonical.indicator.calendar");
@@ -659,7 +657,6 @@ add_calendar_menuitem (GMenu * menu)
g_menu_append_item (menu, menu_item);
g_object_unref (menu_item);
- g_free (label);
}
static GMenuModel *