From 3e7adb8fea5200a699af4ff2d40c583c146a4a95 Mon Sep 17 00:00:00 2001 From: Sandu Liviu Catalin Date: Thu, 30 Apr 2020 23:27:24 +0300 Subject: [PATCH] What is dead may never live. --- module/Library/SQLite.hpp | 4 ++-- module/Misc/Routine.hpp | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/module/Library/SQLite.hpp b/module/Library/SQLite.hpp index 4b15713d..47c4ad4e 100644 --- a/module/Library/SQLite.hpp +++ b/module/Library/SQLite.hpp @@ -1361,7 +1361,7 @@ public: /* -------------------------------------------------------------------------------------------- * Index constructor. */ - SQLiteColumn(StmtRef stmt, Int32 idx) + SQLiteColumn(StmtRef stmt, Int32 idx) : m_Index(idx), m_Handle(std::move(stmt)) { SQMOD_VALIDATE_COLUMN(*this, m_Index); @@ -1379,7 +1379,7 @@ public: /* -------------------------------------------------------------------------------------------- * Dynamic constructor. */ - SQLiteColumn(StmtRef stmt, const Object & column) + SQLiteColumn(StmtRef stmt, const Object & column) : m_Index(-1), m_Handle(std::move(stmt)) { if (!m_Handle) diff --git a/module/Misc/Routine.hpp b/module/Misc/Routine.hpp index d6e66ad1..3b9a925f 100644 --- a/module/Misc/Routine.hpp +++ b/module/Misc/Routine.hpp @@ -394,6 +394,8 @@ public: void Terminate() { GetValid().Terminate(); + s_Intervals[m_Slot] = 0; + m_Slot = SQMOD_MAX_ROUTINES; } /* --------------------------------------------------------------------------------------------