Debugger: fix crash introduced in "LazDebuggerFp: improve error handling"

This commit is contained in:
Martin 2022-08-31 15:33:48 +02:00
parent f15e2bded5
commit 7347d41a12

View File

@ -1053,8 +1053,8 @@ var
w: TWatchValueIntf;
begin
if FWatchValue <> nil then begin
FWatchValue := nil;
w := FWatchValue;
FWatchValue := nil;
w.RemoveNotification(weeCancel, @DoWachCanceled);
if w.Validity = ddsRequested then
w.Validity := ddsInvalid;