* 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:
Loesje_
2011-01-28 11:36:49 +00:00
parent e76eea2eae
commit 03b6497475

View File

@@ -1070,8 +1070,8 @@ begin
{$IFDEF DEBUG}
OutputDebugString('TGeckoBrowser.Destroy');
{$ENDIF}
if not (csDesigning in ComponentState) then
begin
if assigned(FDesignTimeLogo) then
FreeAndNil(FDesignTimeLogo);
ShutdownWebBrowser;
@@ -1080,7 +1080,6 @@ begin
if FGeckoComponentsStartupSucceeded then
GeckoComponentsShutdown;
end;
inherited;
end;