[banshee] [Audiobook] In Dispose, stop listening to event
- From: Gabriel Burt <gburt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee] [Audiobook] In Dispose, stop listening to event
- Date: Wed, 2 Jun 2010 21:06:31 +0000 (UTC)
commit 07f12385f8d9f1f170f351e47b691dc1b784289d
Author: Gabriel Burt <gabriel burt gmail com>
Date: Wed Jun 2 14:05:40 2010 -0700
[Audiobook] In Dispose, stop listening to event
.../Banshee.Audiobook/AudiobookLibrarySource.cs | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/Extensions/Banshee.Audiobook/Banshee.Audiobook/AudiobookLibrarySource.cs b/src/Extensions/Banshee.Audiobook/Banshee.Audiobook/AudiobookLibrarySource.cs
index 8150604..451add6 100644
--- a/src/Extensions/Banshee.Audiobook/Banshee.Audiobook/AudiobookLibrarySource.cs
+++ b/src/Extensions/Banshee.Audiobook/Banshee.Audiobook/AudiobookLibrarySource.cs
@@ -305,13 +305,14 @@ namespace Banshee.Audiobook
public override void Dispose ()
{
+ ServiceManager.PlaybackController.SourceChanged -= OnPlaybackSourceChanged;
+ ServiceManager.PlayerEngine.DisconnectEvent (OnPlayerEvent);
+
if (Actions != null) {
Actions.Dispose ();
Actions = null;
}
- ServiceManager.PlayerEngine.DisconnectEvent (OnPlayerEvent);
-
base.Dispose ();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]