From 76d1861936ae2a7acb8291321bb1c86bb96f064e Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Fri, 28 Feb 2014 21:49:20 -0600 Subject: Drop a connection to playlist event as well --- src/sound-menu.vala | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/sound-menu.vala') 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; -- cgit v1.2.3