mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
FIX: Don't free file source manually.
This commit is contained in:
parent
547227c455
commit
ee8a9b17c1
1 changed files with 0 additions and 4 deletions
|
|
@ -92,7 +92,6 @@ var
|
|||
Operation: TFileSourceOperation;
|
||||
OperationHandle: TOperationHandle;
|
||||
ProgressDialog: TfrmFileOp;
|
||||
bTargetFileSourceCreated: Boolean = False;
|
||||
begin
|
||||
try
|
||||
with TfrmPackDlg.Create(nil) do
|
||||
|
|
@ -131,7 +130,6 @@ begin
|
|||
else
|
||||
begin
|
||||
// Create a new target file source.
|
||||
bTargetFileSourceCreated := True;
|
||||
|
||||
// Only WCX now.
|
||||
NewTargetFileSource := TWcxArchiveFileSource.CreateByArchiveName(edtPackCmd.Text);
|
||||
|
|
@ -177,8 +175,6 @@ begin
|
|||
finally
|
||||
if Assigned(Files) then
|
||||
FreeAndNil(Files);
|
||||
if bTargetFileSourceCreated and Assigned(NewTargetFileSource) then
|
||||
FreeAndNil(NewTargetFileSource);
|
||||
end;
|
||||
end;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue