summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lib/edje/edje_lua2.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/edje/edje_lua2.c b/src/lib/edje/edje_lua2.c
index b8a66c67c7..b204736439 100644
--- a/src/lib/edje/edje_lua2.c
+++ b/src/lib/edje/edje_lua2.c
@@ -3964,6 +3964,11 @@ _edje_lua2_script_init(Edje *ed) // Stack usage [-63, +99, em]
3964 _elua_init(); // This is actually truly pointless, even if raster remembers. 3964 _elua_init(); // This is actually truly pointless, even if raster remembers.
3965#endif 3965#endif
3966 L = ed->L = luaL_newstate(); 3966 L = ed->L = luaL_newstate();
3967 if (!L)
3968 {
3969 ERR("Lua state assign failed");
3970 return;
3971 }
3967 al = lua_newuserdata(L, sizeof(Edje_Lua_Allocator)); 3972 al = lua_newuserdata(L, sizeof(Edje_Lua_Allocator));
3968 al->ref = luaL_ref(L, LUA_REGISTRYINDEX); 3973 al->ref = luaL_ref(L, LUA_REGISTRYINDEX);
3969 al->func = lua_getallocf(L, &(al->ud)); 3974 al->func = lua_getallocf(L, &(al->ud));