aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hua <william.hua@canonical.com>2013-04-26 09:39:14 -0400
committerWilliam Hua <william.hua@canonical.com>2013-04-26 09:39:14 -0400
commit83fef721ee298c5b6675f3c1147f453d2ae86def (patch)
tree213ce9834b9bea25f199f3b229ca20481f26bd02
parent5d6adee29145a24537fe8ceb20988efe37011c8f (diff)
downloadlibayatana-indicator-83fef721ee298c5b6675f3c1147f453d2ae86def.tar.gz
libayatana-indicator-83fef721ee298c5b6675f3c1147f453d2ae86def.tar.bz2
libayatana-indicator-83fef721ee298c5b6675f3c1147f453d2ae86def.zip
Don't free label and accessible_desc.
-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)