lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> We are using LUA in our current game, but we are currently 
> experiencing horrible memory leaks with it.

My program was leaking for a while until I realised that references obtained with lua_ref(L, FALSE) still needed to be released with lua_unref (I thought that only the locked ones needed it -- they all use Lua memory).  It's worth checking that all lua_ref()s have matching lua_unref()s.  Just a thought.  That wouldn't explain the seg fault though.

Martin.