mirror of
https://github.com/moparisthebest/Simba
synced 2024-11-22 01:02:17 -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:
parent
50b08bd83c
commit
8be08ea497
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user