From 2a2c2e97a9be9fc4db30842ad61e46a1fd7cd125 Mon Sep 17 00:00:00 2001 From: Nicolas Noble Date: Mon, 11 Aug 2014 11:53:25 -0700 Subject: Bugs fixing in Lua - we really can't afford to have destructors throwing exceptions, and also making sure we're using the proper types for Handles. --- includes/BLua.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'includes/BLua.h') diff --git a/includes/BLua.h b/includes/BLua.h index b5c147a..d0541f6 100644 --- a/includes/BLua.h +++ b/includes/BLua.h @@ -35,8 +35,9 @@ class DeferredCollector : public StacklessTask { virtual const char * getName() const override { return "DeferredCollector"; } virtual void Do() override { StacklessBegin(); - StacklessOperation(delete m_obj); + StacklessOperation(m_obj->cleanup()); StacklessEnd(); + delete m_obj; } private: T * m_obj; -- cgit v1.2.3