fix FontGroup __gc method
This commit is contained in:
parent
4be8a8b582
commit
84a3906323
|
@ -106,8 +106,10 @@ static int f_font_set_tab_size(lua_State *L) {
|
|||
}
|
||||
|
||||
static int f_font_gc(lua_State *L) {
|
||||
if (lua_istable(L, 1)) return 0; // do not run if its FontGroup
|
||||
RenFont** self = luaL_checkudata(L, 1, API_TYPE_FONT);
|
||||
ren_font_free(*self);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue