mirror of
https://github.com/SWG-Source/src.git
synced 2026-07-31 00:15:55 -04:00
fix a couple more obvious leaks
This commit is contained in:
@@ -1270,7 +1270,8 @@ bool TargaFormat::saveImage(const Image &image, const char *filename)
|
||||
numWritten = fwrite(&footer, sizeof(footer), 1, f);
|
||||
if (numWritten != 1)
|
||||
{
|
||||
DEBUG_WARNING(true, ("Targa footer not written successfully for %s\n", filename));
|
||||
fclose(f);
|
||||
DEBUG_WARNING(true, ("Targa footer not written successfully for %s\n", filename));
|
||||
return false;
|
||||
}
|
||||
//------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user