summaryrefslogtreecommitdiff
path: root/epgsearchext.h
diff options
context:
space:
mode:
authorChristian Wieninger <cwieninger@gmx.de>2011-08-21 16:40:58 +0200
committerChristian Wieninger <cwieninger@gmx.de>2011-08-21 16:40:58 +0200
commitb00f9805d223f71172293cb32e26edbc6f8fc1b2 (patch)
tree0d8343a4b60d3c0403516a3088e03d385ba701b2 /epgsearchext.h
parent548a267c4458845485d41480ddec7c5c4ff28778 (diff)
downloadvdr-plugin-epgsearch-b00f9805d223f71172293cb32e26edbc6f8fc1b2.tar.gz
vdr-plugin-epgsearch-b00f9805d223f71172293cb32e26edbc6f8fc1b2.tar.bz2
fixed some memory leaks
Diffstat (limited to 'epgsearchext.h')
-rw-r--r--epgsearchext.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/epgsearchext.h b/epgsearchext.h
index 489deed..16a4c49 100644
--- a/epgsearchext.h
+++ b/epgsearchext.h
@@ -213,7 +213,7 @@ class cSearchExts : public cList<cSearchExt>, public cMutex {
private:
char *fileName;
bool allowComments;
- void Clear(void)
+ virtual void Clear(void)
{
cMutexLock SearchExtsLock(this);
free(fileName);
@@ -222,7 +222,7 @@ class cSearchExts : public cList<cSearchExt>, public cMutex {
}
public:
cSearchExts(void) { fileName = NULL; }
- virtual ~cSearchExts() { free(fileName); }
+ virtual ~cSearchExts() { Clear(); free(fileName); }
public:
bool Load(const char *FileName = NULL);