diff options
author | Nicolas Noble <pixel@nobis-crew.org> | 2014-08-11 11:53:25 -0700 |
---|---|---|
committer | Nicolas Noble <pixel@nobis-crew.org> | 2014-08-11 11:53:25 -0700 |
commit | 2a2c2e97a9be9fc4db30842ad61e46a1fd7cd125 (patch) | |
tree | 843518e97789df9b85ac2fcc32417e1ec59b1656 /includes/BLua.h | |
parent | 3664fe8db6a88e2aed5bc9425dfae92828851a42 (diff) |
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.
Diffstat (limited to 'includes/BLua.h')
-rw-r--r-- | includes/BLua.h | 3 |
1 files changed, 2 insertions, 1 deletions
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; |