mirror of
https://github.com/salvadordf/CEF4Delphi.git
synced 2025-06-02 21:57:37 +02:00
Fix Leak in demos
This commit is contained in:
parent
cee41f519b
commit
70042ffc67
@ -275,6 +275,7 @@ initialization
|
|||||||
CreateGlobalCEFApp;
|
CreateGlobalCEFApp;
|
||||||
if not GlobalCEFApp.StartMainProcess then begin
|
if not GlobalCEFApp.StartMainProcess then begin
|
||||||
DestroyGlobalCEFApp;
|
DestroyGlobalCEFApp;
|
||||||
|
DestroyGlobalCEFWorkScheduler;
|
||||||
halt(0); // exit the subprocess
|
halt(0); // exit the subprocess
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
@ -299,6 +299,7 @@ initialization
|
|||||||
CreateGlobalCEFApp;
|
CreateGlobalCEFApp;
|
||||||
if not GlobalCEFApp.StartMainProcess then begin
|
if not GlobalCEFApp.StartMainProcess then begin
|
||||||
DestroyGlobalCEFApp;
|
DestroyGlobalCEFApp;
|
||||||
|
DestroyGlobalCEFWorkScheduler;
|
||||||
halt(0); // exit the subprocess
|
halt(0); // exit the subprocess
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user