~ubuntu-desktop/libindicator/ubuntu

« back to all changes in this revision

Viewing changes to libindicator/indicator-service.c

  • Committer: Sebastien Bacher
  • Date: 2012-03-08 20:57:54 UTC
  • mfrom: (337.1.92 ubuntu)
  • Revision ID: seb128@ubuntu.com-20120308205754-ryk2guh8b2bhlmqh
Tags: 0.4.93-0ubuntu1
releasing version 0.4.93-0ubuntu1

Show diffs side-by-side

added added

removed removed

Lines of Context:
588
588
        /* Remove us from the watcher list here */
589
589
        gpointer watcher_item = g_hash_table_lookup(priv->watchers, name);
590
590
        if (watcher_item != NULL) {
591
 
                g_hash_table_remove(priv->watchers, name);
 
591
                gchar * safe_name = g_strdup(name);
 
592
                g_hash_table_remove(priv->watchers, safe_name);
 
593
                g_free(safe_name);
592
594
        } else {
593
595
                /* Odd that we couldn't find the person, but, eh */
594
596
                g_warning("Unable to find watcher who is unwatching: %s", name);