Update of /cvsroot/wxlua/wxLua/modules/wxlua/src
In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv25555/wxLua/modules/wxlua/src
Modified Files:
wxlcallb.cpp
Log Message:
Don't track the event wxLuaCallback::CallFunction() event since we didn't create it
and the memory may be reused before the __gc clears it from the object table in
Lua's registry
Index: wxlcallb.cpp
===================================================================
RCS file: /cvsroot/wxlua/wxLua/modules/wxlua/src/wxlcallb.cpp,v
retrieving revision 1.36
retrieving revision 1.37
diff -C2 -d -r1.36 -r1.37
*** wxlcallb.cpp 2 Aug 2007 23:08:57 -0000 1.36
--- wxlcallb.cpp 3 Aug 2007 02:34:05 -0000 1.37
***************
*** 149,153 ****
if (wxlState.lua_SetFenv(-2) != 0)
{
! wxlState.tpushusertag(event, event_tag, true);
wxlState.LuaPCall(1, 0);
}
--- 149,155 ----
if (wxlState.lua_SetFenv(-2) != 0)
{
! // don't track this since we didn't create it
! // Tracking this causes clashes in the object registry table
! wxlState.tpushusertag(event, event_tag, false);
wxlState.LuaPCall(1, 0);
}
|