summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorpixel <pixel>2008-01-06 15:51:07 +0000
committerpixel <pixel>2008-01-06 15:51:07 +0000
commit0b662908f2a5152f0376d1f07b1fe3d2a2249df5 (patch)
tree7ee89cd5a82a3a4b8fe6b20515d342dfbcc218de /lib
parentb8d5cc298d02d47a7e87d26bc956c3473bed57ba (diff)
Fixing double delete with the explicit destructor.
Diffstat (limited to 'lib')
-rw-r--r--lib/BLua.cc4
1 files changed, 1 insertions, 3 deletions
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 <stdlib.h>
#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();