From 56d814630391c92aea6358a6d084f796135d742c Mon Sep 17 00:00:00 2001 From: Daniel Grunwald Date: Fri, 18 Mar 2011 16:41:47 +0100 Subject: [PATCH] Fixed memory leak in SharpDevelopCompletionWindow --- .../AvalonEdit.AddIn/Src/SharpDevelopCompletionWindow.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/AddIns/DisplayBindings/AvalonEdit.AddIn/Src/SharpDevelopCompletionWindow.cs b/src/AddIns/DisplayBindings/AvalonEdit.AddIn/Src/SharpDevelopCompletionWindow.cs index 40d2d85741..8143e975a6 100644 --- a/src/AddIns/DisplayBindings/AvalonEdit.AddIn/Src/SharpDevelopCompletionWindow.cs +++ b/src/AddIns/DisplayBindings/AvalonEdit.AddIn/Src/SharpDevelopCompletionWindow.cs @@ -2,6 +2,7 @@ // This code is distributed under the GNU LGPL (for details please see \doc\license.txt) using System; +using System.ComponentModel; using System.Linq; using System.Windows; using System.Windows.Controls; @@ -137,7 +138,7 @@ namespace ICSharpCode.AvalonEdit.AddIn new object Description { get; } } - sealed class CodeCompletionDataAdapter : ICompletionData + sealed class CodeCompletionDataAdapter : ICompletionData, INotifyPropertyChanged { readonly SharpDevelopCompletionWindow window; readonly ICompletionItem item; @@ -202,5 +203,11 @@ namespace ICSharpCode.AvalonEdit.AddIn if (context.CompletionCharHandled && txea != null) txea.Handled = true; } + + // This is required to work around http://support.microsoft.com/kb/938416/en-us + event System.ComponentModel.PropertyChangedEventHandler INotifyPropertyChanged.PropertyChanged { + add { } + remove { } + } } }