summaryrefslogtreecommitdiff
path: root/includes/BLua.h
diff options
context:
space:
mode:
authorNicolas Noble <pixel@nobis-crew.org>2014-08-11 11:53:25 -0700
committerNicolas Noble <pixel@nobis-crew.org>2014-08-11 11:53:25 -0700
commit2a2c2e97a9be9fc4db30842ad61e46a1fd7cd125 (patch)
tree843518e97789df9b85ac2fcc32417e1ec59b1656 /includes/BLua.h
parent3664fe8db6a88e2aed5bc9425dfae92828851a42 (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.h3
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;