From b00f9805d223f71172293cb32e26edbc6f8fc1b2 Mon Sep 17 00:00:00 2001 From: Christian Wieninger Date: Sun, 21 Aug 2011 16:40:58 +0200 Subject: fixed some memory leaks --- epgsearchext.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'epgsearchext.h') 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, 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, public cMutex { } public: cSearchExts(void) { fileName = NULL; } - virtual ~cSearchExts() { free(fileName); } + virtual ~cSearchExts() { Clear(); free(fileName); } public: bool Load(const char *FileName = NULL); -- cgit v1.2.3