diff --git a/tvsp.c b/tvsp.c index 005ea64..45bf095 100644 --- a/tvsp.c +++ b/tvsp.c @@ -14,6 +14,24 @@ Tvsp::Tvsp() { imageSize = 1; saveJson = false; saveXml = false; + + stmtByFileRef = NULL; + selectByTag = NULL; + selectDistBySource = NULL; + selectId = NULL; + stmtMarkOldEvents = NULL; + +} + +Tvsp::~Tvsp() { + delete stmtByFileRef; + delete selectByTag; + delete selectDistBySource; + delete selectId; + delete stmtMarkOldEvents; + + if (pxsltStylesheet) + xsltFreeStylesheet(pxsltStylesheet); } int Tvsp::init(cEpgd *aObject, int aUtf8) { diff --git a/tvsp.h b/tvsp.h index e34b68a..c5852cb 100644 --- a/tvsp.h +++ b/tvsp.h @@ -33,7 +33,6 @@ private: cDbStatement* stmtByFileRef; cDbStatement* selectByTag; - cDbValue* valueFileRef; std::set imagefileSet; @@ -64,6 +63,8 @@ private: public: Tvsp(); + ~Tvsp(); + virtual int init(cEpgd* aObject, int aUtf8); virtual int initDb();