[banshee] [EmusicService] Unsubscribe from event when disposing
- From: Bertrand Lorentz <blorentz src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [banshee] [EmusicService] Unsubscribe from event when disposing
- Date: Mon, 18 Jan 2010 21:44:16 +0000 (UTC)
commit 93eeee4dde273c20a03b3316596c9c9789cfc54f
Author: Bertrand Lorentz <bertrand lorentz gmail com>
Date: Mon Jan 18 22:40:29 2010 +0100
[EmusicService] Unsubscribe from event when disposing
Prevents a dbus error message in the following scenario : start banshee,
disable eMusic extension, run "banshee path/to/existing.emx" from a
terminal.
.../Banshee.Emusic/Banshee.Emusic/EmusicService.cs | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/Extensions/Banshee.Emusic/Banshee.Emusic/EmusicService.cs b/src/Extensions/Banshee.Emusic/Banshee.Emusic/EmusicService.cs
index 188e0c0..4d49e87 100644
--- a/src/Extensions/Banshee.Emusic/Banshee.Emusic/EmusicService.cs
+++ b/src/Extensions/Banshee.Emusic/Banshee.Emusic/EmusicService.cs
@@ -77,6 +77,7 @@ namespace Banshee.Emusic
public void Dispose ()
{
+ ServiceManager.Get<DBusCommandService> ().ArgumentPushed -= OnCommandLineArgument;
download_manager.Dispose ();
download_manager_iface.Dispose ();
download_manager = null;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]