From: John L. <jr...@us...> - 2008-01-07 19:55:29
|
Update of /cvsroot/wxlua/wxLua/modules/wxlua/src In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv11837/modules/wxlua/src Modified Files: wxlstate.cpp Log Message: Pop userdata that is the wrong type in wxluaO_istrackedweakobject Hopefully fixes: [wxlua-users] wrap acces violation Index: wxlstate.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxlua/src/wxlstate.cpp,v retrieving revision 1.159 retrieving revision 1.160 diff -C2 -d -r1.159 -r1.160 *** wxlstate.cpp 5 Jan 2008 00:15:46 -0000 1.159 --- wxlstate.cpp 7 Jan 2008 19:55:26 -0000 1.160 *************** *** 668,674 **** return true; } } ! lua_pop(L, 2); // pop the table and the nil. return false; } --- 668,676 ---- return true; } + else + lua_pop(L, 1); // pop the userdata that is not the right type } ! lua_pop(L, 2); // pop the weakobj table and the nil. return false; } |