diff options
Diffstat (limited to 'src/sound-menu.vala')
-rw-r--r-- | src/sound-menu.vala | 6 |
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; |