Close workingCopy in workingCopyPathAs() for correct error handling

charconv
Martchus 3 years ago
parent 07ae1588fa
commit 1bdc088b54
  1. 1
      tests/testutils.cpp

@ -330,6 +330,7 @@ string TestApplication::workingCopyPathAs(
return string();
}
workingCopy << origFile.rdbuf();
workingCopy.close();
if (!origFile.fail() && !workingCopy.fail()) {
return workingCopyPath;
}

Loading…
Cancel
Save