aboutsummaryrefslogtreecommitdiff
path: root/src/lua/graphics
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua/graphics')
-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;
}