mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
FIX: SevenZip - crash on exit
This commit is contained in:
parent
118ea526d4
commit
8b8dff2137
3 changed files with 11 additions and 2 deletions
|
|
@ -348,14 +348,17 @@ procedure Finish;
|
|||
var
|
||||
Index: Integer;
|
||||
begin
|
||||
if Assigned(ALibraries) then begin
|
||||
if Assigned(ALibraries) then
|
||||
begin
|
||||
for Index:= 0 to ALibraries.Count - 1 do
|
||||
begin
|
||||
if Assigned(ALibraries[Index].SetCodecs) then
|
||||
ALibraries[Index].SetCodecs(nil);
|
||||
FreeLibrary(ALibraries[Index].Handle);
|
||||
end;
|
||||
ALibraries.Free;
|
||||
end;
|
||||
ACodecs.Free;
|
||||
end;
|
||||
|
||||
finalization
|
||||
|
|
|
|||
|
|
@ -122,7 +122,7 @@ type
|
|||
end;
|
||||
|
||||
var
|
||||
PasswordCache: TPasswordCache;
|
||||
PasswordCache: TPasswordCache = nil;
|
||||
|
||||
threadvar
|
||||
ProcessDataProcT: TProcessDataProcW;
|
||||
|
|
@ -778,5 +778,8 @@ begin
|
|||
inherited Destroy;
|
||||
end;
|
||||
|
||||
finalization
|
||||
PasswordCache.Free;
|
||||
|
||||
end.
|
||||
|
||||
|
|
|
|||
|
|
@ -69,5 +69,8 @@ begin
|
|||
end;
|
||||
end;
|
||||
|
||||
finalization
|
||||
FinalizeResourceTables;
|
||||
|
||||
end.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue