aboutsummaryrefslogtreecommitdiff
path: root/libindicator
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2012-03-05 13:13:33 -0600
committerCharles Kerr <charles.kerr@canonical.com>2012-03-05 13:13:33 -0600
commit9dcb9295f14d2cf274120f38810529c93e6d88f7 (patch)
tree5304dba6a569331f25442344e765aed76017aada /libindicator
parentdbaf540c033c3a1e296834be94dd0893cde88383 (diff)
parent039c7d8e4608f9973cef49526de067f33810248a (diff)
downloadlibayatana-indicator-9dcb9295f14d2cf274120f38810529c93e6d88f7.tar.gz
libayatana-indicator-9dcb9295f14d2cf274120f38810529c93e6d88f7.tar.bz2
libayatana-indicator-9dcb9295f14d2cf274120f38810529c93e6d88f7.zip
merge lp:~ted/libindicator/lp719457 for Bug #719457
Diffstat (limited to 'libindicator')
-rw-r--r--libindicator/indicator-service.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libindicator/indicator-service.c b/libindicator/indicator-service.c
index e9f3133..11171fc 100644
--- a/libindicator/indicator-service.c
+++ b/libindicator/indicator-service.c
@@ -588,7 +588,9 @@ unwatch_core (IndicatorService * service, const gchar * name)
/* Remove us from the watcher list here */
gpointer watcher_item = g_hash_table_lookup(priv->watchers, name);
if (watcher_item != NULL) {
- g_hash_table_remove(priv->watchers, name);
+ gchar * safe_name = g_strdup(name);
+ g_hash_table_remove(priv->watchers, safe_name);
+ g_free(safe_name);
} else {
/* Odd that we couldn't find the person, but, eh */
g_warning("Unable to find watcher who is unwatching: %s", name);