From 0b662908f2a5152f0376d1f07b1fe3d2a2249df5 Mon Sep 17 00:00:00 2001 From: pixel Date: Sun, 6 Jan 2008 15:51:07 +0000 Subject: Fixing double delete with the explicit destructor. --- lib/BLua.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lib/BLua.cc') diff --git a/lib/BLua.cc b/lib/BLua.cc index 37136d1..1020e33 100644 --- a/lib/BLua.cc +++ b/lib/BLua.cc @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* $Id: BLua.cc,v 1.54 2007-08-07 09:54:10 pixel Exp $ */ +/* $Id: BLua.cc,v 1.55 2008-01-06 15:51:07 pixel Exp $ */ #include #include "BLua.h" @@ -379,8 +379,6 @@ int LuaStatics::collector(lua_State * __L) { int LuaStatics::destructor(lua_State * __L) { Lua * L = Lua::find(__L); - Base * b = (Base *) LuaObject::getme(L); - delete b; L->push("__obj"); L->gettable(-2, true); void ** u = (void **) L->touserdata(); -- cgit v1.2.3