diff options
author | Ted Gould <ted@gould.cx> | 2012-03-07 14:08:40 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2012-03-07 14:08:40 -0600 |
commit | 67872e2808a7c4f4d414822198e4a3f951bdf411 (patch) | |
tree | ec6847f736a6188a06557a516de5b16ba5c6fb0d /libindicator/indicator-service.c | |
parent | 169093d37a32b8019211dd998a6b1ec2df68e450 (diff) | |
parent | 18d670b206e2c4292451cb17602d209a628a7e21 (diff) | |
download | libayatana-indicator-67872e2808a7c4f4d414822198e4a3f951bdf411.tar.gz libayatana-indicator-67872e2808a7c4f4d414822198e4a3f951bdf411.tar.bz2 libayatana-indicator-67872e2808a7c4f4d414822198e4a3f951bdf411.zip |
Import upstream version 0.4.93
Diffstat (limited to 'libindicator/indicator-service.c')
-rw-r--r-- | libindicator/indicator-service.c | 4 |
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); |