From 9a1a16f3d42b2f48b26eb3daef3a195fc0f2a13e Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sun, 11 Aug 2002 13:32:23 +0200 Subject: Consistently using malloc/free and new/delete --- config.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'config.h') diff --git a/config.h b/config.h index 723ac1d5..ef7f70e6 100644 --- a/config.h +++ b/config.h @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: config.h 1.122 2002/08/09 14:53:21 kls Exp $ + * $Id: config.h 1.123 2002/08/11 11:36:36 kls Exp $ */ #ifndef __CONFIG_H @@ -12,6 +12,7 @@ #include #include +#include #include #include #include @@ -214,12 +215,13 @@ private: char *fileName; void Clear(void) { - delete fileName; + free(fileName); + fileName = NULL; cList::Clear(); } public: cConfig(void) { fileName = NULL; } - virtual ~cConfig() { delete fileName; } + virtual ~cConfig() { free(fileName); } const char *FileName(void) { return fileName; } bool Load(const char *FileName, bool AllowComments = false) { -- cgit v1.2.3