Browse Source

* fixed small bug

master
Bergmann89 7 years ago
parent
commit
f41d478213
1 changed files with 10 additions and 4 deletions
  1. +10
    -4
      utsUtils.pas

+ 10
- 4
utsUtils.pas View File

@@ -188,10 +188,16 @@ end;
destructor TtsMultiMasterRefManager.Destroy;
var
i: Integer;
begin
for i := fMasterRefs.Count-1 downto 0 do
DelMaster(fMasterRefs[i] as TtsRefManager);
FreeAndNil(fMasterRefs);
m: TObjectList;
begin
m := fMasterRefs;
try
fMasterRefs := nil;
for i := m.Count-1 downto 0 do
(m[i] as TtsRefManager).DelSlave(self);
finally
FreeAndNil(m);
end;
inherited Destroy;
end;



Loading…
Cancel
Save