Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/par2creator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ Result Par2Creator::Process(
bool Par2Creator::CheckBasepath(const string &parfilename)
{
string checkfilename = parfilename + ".check.par2";
DiskFile *diskfile = new DiskFile(sout, serr);
std::unique_ptr<DiskFile> diskfile(new DiskFile(sout, serr));
size_t dummysize = 4096;

if (!diskfile->Create(checkfilename, dummysize))
Expand Down Expand Up @@ -336,7 +336,7 @@ bool Par2Creator::CalculateProcessBlockSize(size_t memorylimit)

deferhashcomputation = true;
}

if (MAX_CHUNK_SIZE != 0 && chunksize > MAX_CHUNK_SIZE)
{
chunksize = MAX_CHUNK_SIZE;
Expand Down