From 6cac9f69adf72c22dee50f3bb9c8062f5de553cf Mon Sep 17 00:00:00 2001 From: Eusebiu Marcu Date: Fri, 19 Aug 2011 17:01:46 +0200 Subject: [PATCH] Remove decompilation data when view content is disposed. --- .../ILSpyAddIn/ViewContent/DecompiledViewContent.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/AddIns/DisplayBindings/ILSpyAddIn/ViewContent/DecompiledViewContent.cs b/src/AddIns/DisplayBindings/ILSpyAddIn/ViewContent/DecompiledViewContent.cs index beffdd4c0e..3341277ed7 100644 --- a/src/AddIns/DisplayBindings/ILSpyAddIn/ViewContent/DecompiledViewContent.cs +++ b/src/AddIns/DisplayBindings/ILSpyAddIn/ViewContent/DecompiledViewContent.cs @@ -95,6 +95,9 @@ namespace ICSharpCode.ILSpyAddIn codeView.Dispose(); BookmarkManager.Added -= BookmarkManager_Added; BookmarkManager.Removed -= BookmarkManager_Removed; + DecompileInformation data; + DebuggerDecompilerService.DebugInformation.TryRemove(decompiledType.MetadataToken.ToInt32(), out data); + data = null; base.Dispose(); } #endregion