fixed freeing glyphs

git-svn-id: trunk@4725 -
This commit is contained in:
mattias 2003-10-22 19:52:07 +00:00
parent 24a046fcf6
commit 9e186eb76b
2 changed files with 2 additions and 1 deletions

View File

@ -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;

View File

@ -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;