You've already forked lazarus-ccr
* Fixed mem-leaks in designer. If there are instances created, release them. Even in csDesigning mode. (which is not always set already at creation)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@1467 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@@ -1070,17 +1070,16 @@ begin
|
|||||||
{$IFDEF DEBUG}
|
{$IFDEF DEBUG}
|
||||||
OutputDebugString('TGeckoBrowser.Destroy');
|
OutputDebugString('TGeckoBrowser.Destroy');
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
if not (csDesigning in ComponentState) then
|
|
||||||
begin
|
if assigned(FDesignTimeLogo) then
|
||||||
FreeAndNil(FDesignTimeLogo);
|
FreeAndNil(FDesignTimeLogo);
|
||||||
ShutdownWebBrowser;
|
ShutdownWebBrowser;
|
||||||
|
|
||||||
Chrome := nil;
|
Chrome := nil;
|
||||||
Listener := nil;
|
Listener := nil;
|
||||||
|
|
||||||
if FGeckoComponentsStartupSucceeded then
|
if FGeckoComponentsStartupSucceeded then
|
||||||
GeckoComponentsShutdown;
|
GeckoComponentsShutdown;
|
||||||
end;
|
|
||||||
|
|
||||||
inherited;
|
inherited;
|
||||||
end;
|
end;
|
||||||
|
Reference in New Issue
Block a user