Skip to content

Commit 5ea5461

Browse files
committed
fix: crash in host list icons after disconnect
1 parent 95885c1 commit 5ea5461

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎source/main.pas‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9594,6 +9594,9 @@ procedure TMainForm.HostListGetImageIndex(Sender: TBaseVirtualTree; Node: PVirtu
95949594
if Sender = ListProcesses then begin
95959595
Idx := Sender.GetNodeData(Node);
95969596
Results := GridResult(Sender);
9597+
// Result sets get freed while disconnecting, a paint event may still come through then
9598+
if not Assigned(Results) then
9599+
Exit;
95979600
if not Results.Connection.Active then
95989601
Exit;
95999602
Results.RecNo := Idx^;

0 commit comments

Comments
 (0)