aboutsummaryrefslogtreecommitdiff
path: root/src/app-indicator.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/app-indicator.c')
-rw-r--r--src/app-indicator.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/app-indicator.c b/src/app-indicator.c
index 0da0b01..b3fa3e5 100644
--- a/src/app-indicator.c
+++ b/src/app-indicator.c
@@ -651,6 +651,11 @@ app_indicator_set_property (GObject * object, guint prop_id, const GValue * valu
signal_label_change(APP_INDICATOR(object));
}
+ if (priv->label != NULL && priv->label[0] == '\0') {
+ g_free(priv->label);
+ priv->label = NULL;
+ }
+
if (oldlabel != NULL) {
g_free(oldlabel);
}
@@ -664,6 +669,11 @@ app_indicator_set_property (GObject * object, guint prop_id, const GValue * valu
signal_label_change(APP_INDICATOR(object));
}
+ if (priv->label_guide != NULL && priv->label_guide[0] == '\0') {
+ g_free(priv->label_guide);
+ priv->label_guide = NULL;
+ }
+
if (oldguide != NULL) {
g_free(oldguide);
}