aboutsummaryrefslogtreecommitdiff
path: root/src/lua/graphics/luaopen_graphics.cpp
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2018-08-18 14:29:11 +0800
committerchai <chaifix@163.com>2018-08-18 14:29:11 +0800
commit2fb51a71e53b4fc7bd4058d3a5a6f39fa81c345a (patch)
tree973d9e020b5a230d2886c564ef3445e1b654ab2a /src/lua/graphics/luaopen_graphics.cpp
parenta68d5cf198a87bb3e14d03dc7347ed52134355d4 (diff)
*update
Diffstat (limited to 'src/lua/graphics/luaopen_graphics.cpp')
-rw-r--r--src/lua/graphics/luaopen_graphics.cpp3
1 files changed, 1 insertions, 2 deletions
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<Font>* ref = new Ref<Font>(font);
- proxy->bind(ref, JIN_GRAPHICS_FONT);
+ proxy->bind(new Ref<Font>(font), JIN_GRAPHICS_FONT);
return 1;
}