Browse Source

Fixed memory leak in SharpDevelopCompletionWindow

4.0
Daniel Grunwald 15 years ago
parent
commit
56d8146303
  1. 9
      src/AddIns/DisplayBindings/AvalonEdit.AddIn/Src/SharpDevelopCompletionWindow.cs

9
src/AddIns/DisplayBindings/AvalonEdit.AddIn/Src/SharpDevelopCompletionWindow.cs

@ -2,6 +2,7 @@ @@ -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 @@ -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 @@ -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 { }
}
}
}

Loading…
Cancel
Save