mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-28 13:00:31 +02:00
Fix leak in TLCLGlyphs.GetImageIndex (introduced in r58106 #50dc18646e). Entry name must be set, before adding to tree. Since the name is used as lookup (the tree "sorts" by the name).
git-svn-id: trunk@62868 -
This commit is contained in:
parent
bc7245b9bb
commit
9ff9f3ac82
@ -2798,9 +2798,9 @@ begin
|
||||
raise EResNotFound.CreateFmt(SResNotFound,[AResourceName]);
|
||||
|
||||
E := TEntry.Create;
|
||||
FImageIndexes.Add(E);
|
||||
E.GlyphName := AResourceName;
|
||||
E.ImageIndex := Result;
|
||||
FImageIndexes.Add(E);
|
||||
end;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user