mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +02:00
Fixed a couple bugs caught by clang's static analyzer
This commit is contained in:
@@ -65,7 +65,7 @@ int TrueTypeRasterizer::getLineHeight() const
|
||||
|
||||
GlyphData *TrueTypeRasterizer::getGlyphData(uint32 glyph) const
|
||||
{
|
||||
love::font::GlyphMetrics glyphMetrics;
|
||||
love::font::GlyphMetrics glyphMetrics = {};
|
||||
FT_Glyph ftglyph;
|
||||
|
||||
// Initialize
|
||||
|
||||
@@ -46,7 +46,7 @@ int w_Thread_start(lua_State *L)
|
||||
{
|
||||
for (int j = i; j >= 0; j--)
|
||||
delete args[j];
|
||||
delete args;
|
||||
delete[] args;
|
||||
return luaL_argerror(L, i+2, "boolean, number, string, love type, or flat table expected");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user