1
0
mirror of https://github.com/salvadordf/CEF4Delphi.git synced 2025-01-13 10:22:04 +02:00

Fix Leak in demos

This commit is contained in:
martin 2021-02-24 03:42:51 +01:00
parent cee41f519b
commit 70042ffc67
2 changed files with 2 additions and 0 deletions

View File

@ -275,6 +275,7 @@ initialization
CreateGlobalCEFApp;
if not GlobalCEFApp.StartMainProcess then begin
DestroyGlobalCEFApp;
DestroyGlobalCEFWorkScheduler;
halt(0); // exit the subprocess
end;
end;

View File

@ -299,6 +299,7 @@ initialization
CreateGlobalCEFApp;
if not GlobalCEFApp.StartMainProcess then begin
DestroyGlobalCEFApp;
DestroyGlobalCEFWorkScheduler;
halt(0); // exit the subprocess
end;
end;