From 57efa331c7ddc247c9b14dc19d4d98afbeb4e3b4 Mon Sep 17 00:00:00 2001 From: chai Date: Tue, 14 Aug 2018 16:14:32 +0800 Subject: *update --- src/lua/graphics/luaopen_Font.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lua/graphics/luaopen_Font.cpp') diff --git a/src/lua/graphics/luaopen_Font.cpp b/src/lua/graphics/luaopen_Font.cpp index 3643412..8585d46 100644 --- a/src/lua/graphics/luaopen_Font.cpp +++ b/src/lua/graphics/luaopen_Font.cpp @@ -11,7 +11,7 @@ namespace lua static int l_gc(lua_State* L) { - Proxy* proxy = (Proxy*)luax_newinstance(L, JIN_GRAPHICS_FONT, sizeof(Proxy)); + Proxy* proxy = (Proxy*)luax_checktype(L, 1, JIN_GRAPHICS_FONT); proxy->release(); return 0; } -- cgit v1.1-26-g67d0