diff options
-rw-r--r-- | includes/BLua.h | 1 | ||||
-rw-r--r-- | includes/HttpServer.h | 2 | ||||
-rw-r--r-- | includes/LuaTask.h | 1 | ||||
-rw-r--r-- | includes/Task.h | 2 |
4 files changed, 5 insertions, 1 deletions
diff --git a/includes/BLua.h b/includes/BLua.h index be78660..12e921f 100644 --- a/includes/BLua.h +++ b/includes/BLua.h @@ -20,6 +20,7 @@ class LuaObject { class LuaObjectFactory { public: LuaObjectFactory() : m_wantsDestruct(false), m_pushed(false) { } + virtual ~LuaObjectFactory() { } virtual void push(Lua & L); void pushDestruct(Lua & L); template<class T> diff --git a/includes/HttpServer.h b/includes/HttpServer.h index 7dbf912..6c28910 100644 --- a/includes/HttpServer.h +++ b/includes/HttpServer.h @@ -44,7 +44,7 @@ class HttpServer { class Action { public: Action(const Regex & regex, const Regex & host = Regexes::any) : m_regex(regex), m_host(host), m_refCount(0) { } - ~Action() { AAssert(m_refCount == 0, "Don't delete an Action directly"); } + virtual ~Action() { AAssert(m_refCount == 0, "Don't delete an Action directly"); } struct ActionMatch { Regex::Captures uri, host; }; diff --git a/includes/LuaTask.h b/includes/LuaTask.h index 6dff44e..48cef97 100644 --- a/includes/LuaTask.h +++ b/includes/LuaTask.h @@ -12,6 +12,7 @@ class LuaMainTask; class LuaExecCell { public: LuaExecCell() : m_detached(false) { } + virtual ~LuaExecCell() { } void detach() { m_detached = true; } void exec(LuaMainTask * mainTask); protected: diff --git a/includes/Task.h b/includes/Task.h index 592d5c3..b3f395a 100644 --- a/includes/Task.h +++ b/includes/Task.h @@ -27,6 +27,8 @@ class Task; namespace Events { class Callback { + public: + virtual ~Callback() { } protected: virtual void gotEvent(BaseEvent *) = 0; friend class BaseEvent; |