[banshee] [InterfaceActionService] Don't access the ActionGroup after disposing
- From: Bertrand Lorentz <blorentz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee] [InterfaceActionService] Don't access the ActionGroup after disposing
- Date: Sun, 28 Nov 2010 16:36:17 +0000 (UTC)
commit 119de5d25c5b705226bd66a71835f5a162be28bd
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]