aboutsummaryrefslogtreecommitdiff
path: root/libindicator/indicator-service.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2012-03-07 14:11:47 -0600
committerTed Gould <ted@gould.cx>2012-03-07 14:11:47 -0600
commite34b660a8e7477cc0bb120f062074c6e079efa39 (patch)
tree1dd5457ac7bdab516bd7aa9aa2bc90cb70e84ca1 /libindicator/indicator-service.c
parentc83d72a33f81a3aad6c85971b81caeceeb0834dd (diff)
parent67872e2808a7c4f4d414822198e4a3f951bdf411 (diff)
downloadlibayatana-indicator-e34b660a8e7477cc0bb120f062074c6e079efa39.tar.gz
libayatana-indicator-e34b660a8e7477cc0bb120f062074c6e079efa39.tar.bz2
libayatana-indicator-e34b660a8e7477cc0bb120f062074c6e079efa39.zip
* New upstream release.
* Fix branching past initialization of variables (LP: #939061) * Support new FD.o Desktop Actions (LP: #942042) * Fix valgrind error on unload (LP: #719457)
Diffstat (limited to 'libindicator/indicator-service.c')
-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);