From 5c9af043503f92852a1a765b6ecfbc1aea24d2e9 Mon Sep 17 00:00:00 2001 From: chai Date: Tue, 14 Aug 2018 14:56:47 +0800 Subject: *update --- src/lua/luaopen_types.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/lua/luaopen_types.h') diff --git a/src/lua/luaopen_types.h b/src/lua/luaopen_types.h index 587c023..74c658f 100644 --- a/src/lua/luaopen_types.h +++ b/src/lua/luaopen_types.h @@ -59,6 +59,9 @@ namespace lua public: void bind(Object* obj, const char* t) { + if (obj == nullptr) + return; + obj->retain(); object = obj; type = t; } -- cgit v1.1-26-g67d0