mirror of
https://github.com/love2d/love.git
synced 2026-08-15 15:51:12 +02:00
Fixed some potential instability or crash issues
This commit is contained in:
@@ -338,7 +338,8 @@ int w_newFont(lua_State *L)
|
||||
int ret = luax_pconvobj(L, idxs, 2, "font", "newRasterizer");
|
||||
if (ret != 0)
|
||||
{
|
||||
font_data->release();
|
||||
if (font_data)
|
||||
font_data->release();
|
||||
return lua_error(L);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user