mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
Merge pull request #626 from Ragora/bugfix-codechecker-warnings
BugFix: Correct a few memory leaks
This commit is contained in:
commit
ce9f2e51e0
|
|
@ -361,7 +361,9 @@ class StringBuilder
|
|||
{
|
||||
va_list args;
|
||||
va_start(args, fmt);
|
||||
return mFormat.formatAppend(fmt, args);
|
||||
const S32 result = mFormat.formatAppend(fmt, args);
|
||||
va_end(args);
|
||||
return result;
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -471,6 +471,7 @@ static bool sReadTGA(Stream &stream, GBitmap *bitmap)
|
|||
|
||||
default:
|
||||
//Con::errorf( "Unknown image type" );
|
||||
delete[] colormap;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue