aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2014-02-28 21:49:20 -0600
committerTed Gould <ted@gould.cx>2014-02-28 21:49:20 -0600
commit76d1861936ae2a7acb8291321bb1c86bb96f064e (patch)
tree8b8a81e7d576ccecc9d2d7b578ff4a5cd3075cb2
parent8b43adebc047ac432f38296eec2e9b2dd7a5f051 (diff)
downloadayatana-indicator-sound-76d1861936ae2a7acb8291321bb1c86bb96f064e.tar.gz
ayatana-indicator-sound-76d1861936ae2a7acb8291321bb1c86bb96f064e.tar.bz2
ayatana-indicator-sound-76d1861936ae2a7acb8291321bb1c86bb96f064e.zip
Drop a connection to playlist event as well
-rw-r--r--src/sound-menu.vala6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/sound-menu.vala b/src/sound-menu.vala
index 701930e..2df1a52 100644
--- a/src/sound-menu.vala
+++ b/src/sound-menu.vala
@@ -115,8 +115,12 @@ class SoundMenu: Object
var id = this.notify_handlers.lookup(player);
if (id != 0) {
player.disconnect(id);
- this.notify_handlers.remove (player);
}
+
+ player.playlists_changed.disconnect (this.update_playlists);
+
+ /* this'll drop our ref to it */
+ this.notify_handlers.remove (player);
}
Menu root;