1
0
mirror of https://github.com/moparisthebest/Simba synced 2024-11-25 18:52:15 -05:00

Memory leak fix

git-svn-id: http://www.villavu.com/repositories/merlijn/mufasa@351 3f818213-9676-44b0-a9b4-5e4c4e03d09d
This commit is contained in:
Wizzup? 2009-12-28 19:34:07 +00:00
parent 50b08bd83c
commit 8be08ea497

View File

@ -135,7 +135,11 @@ begin
end;
destructor TMFonts.Destroy;
var
i:integer;
begin
for i := 0 to Fonts.Count - 1 do
TMFont(Fonts.Items[i]).Free;
Fonts.Free;
inherited;
@ -177,6 +181,7 @@ var
i: integer;
begin
i := GetFontIndex(Name);
TMFont(Fonts.Items[i]).Free;
Fonts.Delete(i);
end;