[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: lua leaking memory badly
- From: "Martin Stone" <MStone@...>
- Date: Tue, 28 May 2002 13:55:55 +0100
> 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.