mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-08 14: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)
|
||||
+'_'+CurComponent.ComponentClass.ClassName;
|
||||
Parent := CurNoteBookPage;
|
||||
Glyph := CurComponent.Icon;
|
||||
Glyph := CurComponent.GetIconCopy;
|
||||
Width := ComponentPaletteBtnWidth;
|
||||
Height := ComponentPaletteBtnHeight;
|
||||
GroupIndex := 1;
|
||||
|
@ -32,6 +32,7 @@ end;
|
||||
destructor TButtonGlyph.Destroy;
|
||||
Begin
|
||||
FOriginal.Free;
|
||||
FOriginal:=nil;
|
||||
inherited Destroy;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user