Browse Source

fix memory leak in WatchInputBox

pull/18/head
Siegfried Pammer 14 years ago
parent
commit
f7169bd6c8
  1. 7
      src/AddIns/Debugger/Debugger.AddIn/Pads/WatchInputBox.xaml.cs

7
src/AddIns/Debugger/Debugger.AddIn/Pads/WatchInputBox.xaml.cs

@ -52,12 +52,7 @@ namespace Debugger.AddIn.Pads @@ -52,12 +52,7 @@ namespace Debugger.AddIn.Pads
}
// get process
WindowsDebugger debugger = (WindowsDebugger)DebuggerService.CurrentDebugger;
debugger.ProcessSelected += delegate(object sender, ProcessEventArgs e) {
this.Process = e.Process;
};
this.Process = debugger.DebuggedProcess;
this.Process = ((WindowsDebugger)DebuggerService.CurrentDebugger).DebuggedProcess;
}
private Process Process { get; set; }

Loading…
Cancel
Save