Close workingCopy in workingCopyPathAs() for correct error handling
This commit is contained in:
parent
07ae1588fa
commit
1bdc088b54
|
@ -330,6 +330,7 @@ string TestApplication::workingCopyPathAs(
|
|||
return string();
|
||||
}
|
||||
workingCopy << origFile.rdbuf();
|
||||
workingCopy.close();
|
||||
if (!origFile.fail() && !workingCopy.fail()) {
|
||||
return workingCopyPath;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue