~ubuntu-branches/ubuntu/quantal/libindicator/quantal

« back to all changes in this revision

Viewing changes to libindicator/indicator-service.c

  • Committer: Package Import Robot
  • Author(s): Ted Gould
  • Date: 2012-03-07 14:14:07 UTC
  • mfrom: (1.1.33)
  • Revision ID: package-import@ubuntu.com-20120307141407-o4q7m8r3syr5t121
Tags: 0.4.93-0ubuntu1
* 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)

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);