lua stack memory leak

hi

cocos2d-x v2.1rc0-x-2.1.3 CCLuaStack not exist lua_close function.

I added following code in CCLuaStack.h

virtual ~CCLuaStack()
{
lua_close(m_state);
m_state = NULL;
}

is it correct?

Yes - I agree - without this your lua program globals will not get garbage collected.