summaryrefslogtreecommitdiff
path: root/includes/LuaTask.h
diff options
context:
space:
mode:
Diffstat (limited to 'includes/LuaTask.h')
-rw-r--r--includes/LuaTask.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/includes/LuaTask.h b/includes/LuaTask.h
index 0d763de..37d64fa 100644
--- a/includes/LuaTask.h
+++ b/includes/LuaTask.h
@@ -12,13 +12,14 @@ class LuaMainTask;
class LuaExecCell {
public:
LuaExecCell();
+ virtual ~LuaExecCell() { }
void detach() { m_detached = true; }
void exec(LuaMainTask * mainTask);
protected:
virtual void run(Lua &) = 0;
private:
Events::Async m_event;
- bool m_detached;
+ bool m_detached = false;
friend class LuaTask;
};