1
0
mirror of https://github.com/salvadordf/CEF4Delphi.git synced 2025-12-13 21:45:55 +02:00

Fixed possible access violation in Lazarus_Linux_QT6/SimpleBrowser

This commit is contained in:
Salvador Díaz Fau
2025-10-12 18:00:36 +02:00
parent 8d047e2525
commit f8834c063a
2 changed files with 4 additions and 3 deletions

View File

@@ -174,7 +174,7 @@ begin
FClosing := True;
Visible := False;
Chromium1.CloseBrowser(True);
CEFLinkedWindowParent1.Free;
FreeAndNil(CEFLinkedWindowParent1);
end;
end;
{%Endregion}
@@ -219,7 +219,8 @@ end;
procedure TMainForm.BrowserSetFocusMsg(Data: PtrInt);
begin
CEFLinkedWindowParent1.SetFocus;
if assigned(CEFLinkedWindowParent1) then
CEFLinkedWindowParent1.SetFocus;
end;
procedure TMainForm.WMMove(var Message: TLMMove);

View File

@@ -2,7 +2,7 @@
"UpdateLazPackages" : [
{
"ForceNotify" : true,
"InternalVersion" : 799,
"InternalVersion" : 800,
"Name" : "cef4delphi_lazarus.lpk",
"Version" : "140.1.14"
}