From a323b152112c6afee63841811e6caa61716d5dca Mon Sep 17 00:00:00 2001 From: Christian Date: Mon, 23 May 2016 21:58:00 +0200 Subject: [PATCH] Implemented exitDb() --- tvsp.c | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/tvsp.c b/tvsp.c index 45bf095..a6f32ec 100644 --- a/tvsp.c +++ b/tvsp.c @@ -144,7 +144,22 @@ int Tvsp::ready() { } int Tvsp::exitDb() { - return Plugin::exitDb(); + delete stmtByFileRef; + stmtByFileRef = NULL; + + delete selectByTag; + selectByTag = NULL; + + delete selectDistBySource; + selectDistBySource = NULL; + + delete selectId; + selectId = NULL; + + delete stmtMarkOldEvents; + stmtMarkOldEvents = NULL; + + return success; } int Tvsp::atConfigItem(const char *Name, const char *Value) {