You've already forked lazarus-ccr
* Do not try to shutdown Gecko if it failed to load, to avoid exceptions during exceptions
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@1370 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -179,6 +179,8 @@ type
|
|||||||
|
|
||||||
FOnSetupProperties: TNotifyEvent;
|
FOnSetupProperties: TNotifyEvent;
|
||||||
|
|
||||||
|
FGeckoComponentsStartupSucceeded: boolean;
|
||||||
|
|
||||||
//misc settings
|
//misc settings
|
||||||
FDisableJavaScript: Boolean;
|
FDisableJavaScript: Boolean;
|
||||||
FInitialized: Boolean;
|
FInitialized: Boolean;
|
||||||
@ -1012,6 +1014,7 @@ begin
|
|||||||
if not (csDesigning in ComponentState) then
|
if not (csDesigning in ComponentState) then
|
||||||
begin
|
begin
|
||||||
GeckoComponentsStartup;
|
GeckoComponentsStartup;
|
||||||
|
FGeckoComponentsStartupSucceeded := true;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@ -1027,6 +1030,7 @@ begin
|
|||||||
Chrome := nil;
|
Chrome := nil;
|
||||||
Listener := nil;
|
Listener := nil;
|
||||||
|
|
||||||
|
if FGeckoComponentsStartupSucceeded then
|
||||||
GeckoComponentsShutdown;
|
GeckoComponentsShutdown;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user