Commit c280b2e1 authored by Garrett Regier's avatar Garrett Regier

Don't use lgi_enter_func if not found

Prevents segfault when using an old LGI version.
parent aba6c867
......@@ -547,7 +547,8 @@ peas_plugin_loader_lua_finalize (GObject *object)
/* Must take the lock as Lua code will run on lua_close
* and another thread might be running Lua code already
priv->lgi_enter_func (priv->lgi_lock);
if (priv->lgi_enter_func != NULL)
priv->lgi_enter_func (priv->lgi_lock);
g_clear_pointer (&priv->L, (GDestroyNotify) lua_close);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment