mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 21:35:39 +00:00
bug fix for bug #11199, should remove partially created output file.
This commit is contained in:
parent
c80b422504
commit
ccbba8bc22
@ -226,6 +226,11 @@ static CWResult Compile(CWPluginContext context)
|
||||
objectData.objectfile = &gOutputFile;
|
||||
|
||||
err = CWStoreObjectData(context, fileNum, &objectData);
|
||||
} else {
|
||||
// an error occured, delete the output file, which might be a partial file.
|
||||
if (gOutputFile.name[0] != 0) {
|
||||
::FSpDelete(&gOutputFile);
|
||||
}
|
||||
}
|
||||
|
||||
delete[] gSourcePath;
|
||||
|
Loading…
Reference in New Issue
Block a user