Browse Source

Fixed memory leak in GotoDialog.

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@4792 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Daniel Grunwald 16 years ago
parent
commit
2c9c5991ea
  1. 13
      src/Main/Base/Project/Src/TextEditor/Gui/Dialogs/GotoDialog.cs

13
src/Main/Base/Project/Src/TextEditor/Gui/Dialogs/GotoDialog.cs

@ -46,6 +46,13 @@ namespace ICSharpCode.SharpDevelop.Gui @@ -46,6 +46,13 @@ namespace ICSharpCode.SharpDevelop.Gui
textBox.Focus();
}
protected override void OnClosed(EventArgs e)
{
Instance = null;
ParserService.LoadSolutionProjectsThreadEnded -= ParserService_LoadSolutionProjectsThreadEnded;
base.OnClosed(e);
}
void ParserService_LoadSolutionProjectsThreadEnded(object sender, EventArgs e)
{
// refresh the list box contents when parsing has completed
@ -119,12 +126,6 @@ namespace ICSharpCode.SharpDevelop.Gui @@ -119,12 +126,6 @@ namespace ICSharpCode.SharpDevelop.Gui
return emptyList;
}
protected override void OnClosed(EventArgs e)
{
Instance = null;
base.OnClosed(e);
}
Dictionary<string, object> visibleEntries = new Dictionary<string, object>();
int bestMatchType;
double bestPriority;

Loading…
Cancel
Save