From 83fef721ee298c5b6675f3c1147f453d2ae86def Mon Sep 17 00:00:00 2001 From: William Hua Date: Fri, 26 Apr 2013 09:39:14 -0400 Subject: Don't free label and accessible_desc. --- libindicator/indicator-ng.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'libindicator/indicator-ng.c') 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) -- cgit v1.2.3