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) {