Explorar el Código

* fixed small bug

master
Bergmann89 hace 9 años
padre
commit
f41d478213
Se han modificado 1 ficheros con 10 adiciones y 4 borrados
  1. +10
    -4
      utsUtils.pas

+ 10
- 4
utsUtils.pas Ver fichero

@@ -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;



Cargando…
Cancelar
Guardar