mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-12 14:29:36 +02:00
anchordocking: fixed clean up
git-svn-id: trunk@26063 -
This commit is contained in:
parent
627414f637
commit
e0c859f04e
@ -1392,6 +1392,8 @@ begin
|
||||
FreeAndNil(FControls);
|
||||
FreeAndNil(fNeedFree);
|
||||
FreeAndNil(fDisabledAutosizing);
|
||||
fCloseBtnReferenceCount:=-1;
|
||||
FreeAndNil(fCloseBtnBitmap);
|
||||
inherited Destroy;
|
||||
end;
|
||||
|
||||
@ -3748,6 +3750,7 @@ end;
|
||||
|
||||
procedure TAnchorDockCloseButton.ReleaseCloseGlyph;
|
||||
begin
|
||||
if DockMaster=nil then exit;
|
||||
dec(DockMaster.fCloseBtnReferenceCount);
|
||||
if DockMaster.fCloseBtnReferenceCount=0 then
|
||||
FreeAndNil(DockMaster.fCloseBtnBitmap);
|
||||
|
@ -148,7 +148,6 @@ object MainIDE: TMainIDE
|
||||
top = 32
|
||||
object FileMenuItem: TMenuItem
|
||||
Caption = 'File'
|
||||
OnClick = FileMenuItemClick
|
||||
object OpenFileMenuItem: TMenuItem
|
||||
Caption = 'Open file'
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user