From 8114d7c63eaec8e5acca7fcc0a9afc2131f60e45 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sun, 5 Apr 2009 10:21:20 +0200 Subject: Now freeing configDirectory before setting it to a new value in cPlugin::SetConfigDirectory() --- plugin.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'plugin.c') diff --git a/plugin.c b/plugin.c index 8fab11fa..238a0d6a 100644 --- a/plugin.c +++ b/plugin.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: plugin.c 1.28 2008/02/17 13:32:12 kls Exp $ + * $Id: plugin.c 2.1 2009/04/05 10:21:20 kls Exp $ */ #include "plugin.h" @@ -137,6 +137,7 @@ void cPlugin::RegisterI18n(const void *) void cPlugin::SetConfigDirectory(const char *Dir) { + free(configDirectory); configDirectory = strdup(Dir); } -- cgit v1.2.3