From 2fb51a71e53b4fc7bd4058d3a5a6f39fa81c345a Mon Sep 17 00:00:00 2001 From: chai Date: Sat, 18 Aug 2018 14:29:11 +0800 Subject: *update --- src/lua/graphics/luaopen_graphics.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/lua/graphics/luaopen_graphics.cpp') diff --git a/src/lua/graphics/luaopen_graphics.cpp b/src/lua/graphics/luaopen_graphics.cpp index c30365f..4a5ccce 100644 --- a/src/lua/graphics/luaopen_graphics.cpp +++ b/src/lua/graphics/luaopen_graphics.cpp @@ -407,8 +407,7 @@ namespace lua fs->read(path, &b); font->loadb((const unsigned char*)b.data); } - Ref* ref = new Ref(font); - proxy->bind(ref, JIN_GRAPHICS_FONT); + proxy->bind(new Ref(font), JIN_GRAPHICS_FONT); return 1; } -- cgit v1.1-26-g67d0