aboutsummaryrefslogtreecommitdiff
path: root/libindicator
diff options
context:
space:
mode:
Diffstat (limited to 'libindicator')
-rw-r--r--libindicator/indicator-ng.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/libindicator/indicator-ng.c b/libindicator/indicator-ng.c
index 966e93f..fd78662 100644
--- a/libindicator/indicator-ng.c
+++ b/libindicator/indicator-ng.c
@@ -236,9 +236,9 @@ static void
indicator_ng_update_entry (IndicatorNg *self)
{
GVariant *state;
- gchar *label = NULL;
+ const gchar *label = NULL;
GVariant *icon = NULL;
- gchar *accessible_desc = NULL;
+ const gchar *accessible_desc = NULL;
gboolean visible = TRUE;
g_return_if_fail (self->menu != NULL);
@@ -282,9 +282,6 @@ indicator_ng_update_entry (IndicatorNg *self)
indicator_ng_set_accessible_desc (self, accessible_desc);
indicator_object_set_visible (INDICATOR_OBJECT (self), visible);
- g_free (accessible_desc);
- g_free (label);
-
if (icon)
g_variant_unref (icon);
if (state)