Missing destructor

This commit is contained in:
Christian
2016-05-23 21:29:55 +02:00
parent c762aaa40b
commit 4ae6dbed25
2 changed files with 20 additions and 1 deletions

18
tvsp.c
View File

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

3
tvsp.h
View File

@@ -33,7 +33,6 @@ private:
cDbStatement* stmtByFileRef;
cDbStatement* selectByTag;
cDbValue* valueFileRef;
std::set<std::string> imagefileSet;
@@ -64,6 +63,8 @@ private:
public:
Tvsp();
~Tvsp();
virtual int init(cEpgd* aObject, int aUtf8);
virtual int initDb();