mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 08:34:40 +00:00
* BugFix: Correct a few memory leaks.
This commit is contained in:
parent
98657bde7a
commit
2586e73145
2 changed files with 4 additions and 1 deletions
|
|
@ -361,7 +361,9 @@ class StringBuilder
|
||||||
{
|
{
|
||||||
va_list args;
|
va_list args;
|
||||||
va_start(args, fmt);
|
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:
|
default:
|
||||||
//Con::errorf( "Unknown image type" );
|
//Con::errorf( "Unknown image type" );
|
||||||
|
delete[] colormap;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue