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)
+'_'+CurComponent.ComponentClass.ClassName;
Parent := CurNoteBookPage;
Glyph := CurComponent.Icon;
Glyph := CurComponent.GetIconCopy;
Width := ComponentPaletteBtnWidth;
Height := ComponentPaletteBtnHeight;
GroupIndex := 1;

View File

@ -32,6 +32,7 @@ end;
destructor TButtonGlyph.Destroy;
Begin
FOriginal.Free;
FOriginal:=nil;
inherited Destroy;
end;