Fix Leak in demos

This commit is contained in:
martin
2021-03-01 01:18:01 +01:00
parent cee41f519b
commit 70042ffc67
2 changed files with 2 additions and 0 deletions
@@ -299,6 +299,7 @@ initialization
CreateGlobalCEFApp;
if not GlobalCEFApp.StartMainProcess then begin
DestroyGlobalCEFApp;
DestroyGlobalCEFWorkScheduler;
halt(0); // exit the subprocess
end;
end;