summaryrefslogtreecommitdiff
path: root/epgsearchext.h
diff options
context:
space:
mode:
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);