[banshee/1.5.1-fixes: 53/56] [LastfmActions] Unsubscribe from events when disposing (bgo#607347)
- From: Gabriel Burt <gburt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee/1.5.1-fixes: 53/56] [LastfmActions] Unsubscribe from events when disposing (bgo#607347)
- Date: Mon, 22 Mar 2010 18:08:31 +0000 (UTC)
commit b74cd65e3ac2ddf773e534dd24a72320803182db
Author: Bertrand Lorentz <bertrand lorentz gmail com>
Date: Mon Jan 18 22:38:08 2010 +0100
[LastfmActions] Unsubscribe from events when disposing (bgo#607347)
.../Banshee.Lastfm.Radio/LastfmActions.cs | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/Extensions/Banshee.Lastfm/Banshee.Lastfm.Radio/LastfmActions.cs b/src/Extensions/Banshee.Lastfm/Banshee.Lastfm.Radio/LastfmActions.cs
index 7465dba..d2a440d 100644
--- a/src/Extensions/Banshee.Lastfm/Banshee.Lastfm.Radio/LastfmActions.cs
+++ b/src/Extensions/Banshee.Lastfm/Banshee.Lastfm.Radio/LastfmActions.cs
@@ -179,6 +179,9 @@ namespace Banshee.Lastfm.Radio
{
Actions.UIManager.RemoveUi (actions_id);
Actions.RemoveActionGroup (this);
+ lastfm.Connection.StateChanged -= HandleConnectionStateChanged;
+ Actions.SourceActions ["SourcePropertiesAction"].Activated -= OnSourceProperties;
+ ServiceManager.PlaybackController.SourceChanged -= OnPlaybackSourceChanged;
ServiceManager.PlayerEngine.DisconnectEvent (OnPlayerEvent);
base.Dispose ();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]