[banshee/stable-1.8] [InterfaceActionService] Don't access the ActionGroup after disposing
- From: Gabriel Burt <gburt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee/stable-1.8] [InterfaceActionService] Don't access the ActionGroup after disposing
- Date: Thu, 13 Jan 2011 19:13:43 +0000 (UTC)
commit 0ca250e0e048e35cf0e9f60b6ea0b5edbae8795f
Author: Bertrand Lorentz <bertrand lorentz gmail com>
Date: Sun Nov 28 17:31:25 2010 +0100
[InterfaceActionService] Don't access the ActionGroup after disposing
.../Banshee.Gui/InterfaceActionService.cs | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/Core/Banshee.ThickClient/Banshee.Gui/InterfaceActionService.cs b/src/Core/Banshee.ThickClient/Banshee.Gui/InterfaceActionService.cs
index 085e33e..bde46f8 100644
--- a/src/Core/Banshee.ThickClient/Banshee.Gui/InterfaceActionService.cs
+++ b/src/Core/Banshee.ThickClient/Banshee.Gui/InterfaceActionService.cs
@@ -130,9 +130,10 @@ namespace Banshee.Gui
}
} else if (args.Change == ExtensionChange.Remove) {
if (extension_actions.ContainsKey (node.Id)) {
+ string name = extension_actions[node.Id].Name;
extension_actions[node.Id].Dispose ();
- Log.DebugFormat ("Extension actions unloaded: {0}", extension_actions[node.Id].Name);
extension_actions.Remove (node.Id);
+ Log.DebugFormat ("Extension actions unloaded: {0}", name);
}
}
} catch (Exception e) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]