* 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; 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,7 +1030,8 @@ begin
Chrome := nil; Chrome := nil;
Listener := nil; Listener := nil;
GeckoComponentsShutdown; if FGeckoComponentsStartupSucceeded then
GeckoComponentsShutdown;
end; end;
inherited; inherited;