mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-08 20:35:58 +02:00
fixed freeing glyphs
git-svn-id: trunk@4725 -
This commit is contained in:
parent
24a046fcf6
commit
9e186eb76b
@ -425,7 +425,7 @@ begin
|
|||||||
Name:='PaletteBtnPage'+IntToStr(i)+'_'+IntToStr(j)
|
Name:='PaletteBtnPage'+IntToStr(i)+'_'+IntToStr(j)
|
||||||
+'_'+CurComponent.ComponentClass.ClassName;
|
+'_'+CurComponent.ComponentClass.ClassName;
|
||||||
Parent := CurNoteBookPage;
|
Parent := CurNoteBookPage;
|
||||||
Glyph := CurComponent.Icon;
|
Glyph := CurComponent.GetIconCopy;
|
||||||
Width := ComponentPaletteBtnWidth;
|
Width := ComponentPaletteBtnWidth;
|
||||||
Height := ComponentPaletteBtnHeight;
|
Height := ComponentPaletteBtnHeight;
|
||||||
GroupIndex := 1;
|
GroupIndex := 1;
|
||||||
|
@ -32,6 +32,7 @@ end;
|
|||||||
destructor TButtonGlyph.Destroy;
|
destructor TButtonGlyph.Destroy;
|
||||||
Begin
|
Begin
|
||||||
FOriginal.Free;
|
FOriginal.Free;
|
||||||
|
FOriginal:=nil;
|
||||||
inherited Destroy;
|
inherited Destroy;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user