* 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:
Loesje_
2010-11-04 14:22:29 +00:00
parent 95fc6d969d
commit e7d62bd2fa

View File

@ -179,6 +179,8 @@ type
FOnSetupProperties: TNotifyEvent;
FGeckoComponentsStartupSucceeded: boolean;
//misc settings
FDisableJavaScript: Boolean;
FInitialized: Boolean;
@ -1012,6 +1014,7 @@ begin
if not (csDesigning in ComponentState) then
begin
GeckoComponentsStartup;
FGeckoComponentsStartupSucceeded := true;
end;
end;
@ -1027,7 +1030,8 @@ begin
Chrome := nil;
Listener := nil;
GeckoComponentsShutdown;
if FGeckoComponentsStartupSucceeded then
GeckoComponentsShutdown;
end;
inherited;