From 4276c87b673edf9db1f6d9da501f8b2041825256 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 14 Oct 2006 20:33:08 +0000 Subject: [PATCH] this needs to lock, like everything else --- stepmania/src/LuaManager.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/stepmania/src/LuaManager.cpp b/stepmania/src/LuaManager.cpp index 542a1c8c1f..df9c4d7516 100644 --- a/stepmania/src/LuaManager.cpp +++ b/stepmania/src/LuaManager.cpp @@ -235,6 +235,8 @@ namespace XNode *LuaManager::GetLuaInformation() const { + Lua *L = LUA->Get(); + XNode *pLuaNode = new XNode( "Lua" ); XNode *pGlobalsNode = pLuaNode->AppendChild( "GlobalFunctions" ); @@ -401,6 +403,8 @@ XNode *LuaManager::GetLuaInformation() const pConstantNode->AppendAttr( "value", ssprintf("'%s'", s->second.c_str()) ); } + LUA->Release( L ); + return pLuaNode; }