summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2009-04-05 10:21:20 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2009-04-05 10:21:20 +0200
commit8114d7c63eaec8e5acca7fcc0a9afc2131f60e45 (patch)
treebb0763929083bec29b7e648b429cd0b1852f7b7b
parent9ff445dce4d2ed235515c945d745466ce2275438 (diff)
downloadvdr-8114d7c63eaec8e5acca7fcc0a9afc2131f60e45.tar.gz
vdr-8114d7c63eaec8e5acca7fcc0a9afc2131f60e45.tar.bz2
Now freeing configDirectory before setting it to a new value in cPlugin::SetConfigDirectory()
-rw-r--r--HISTORY2
-rw-r--r--plugin.c3
2 files changed, 4 insertions, 1 deletions
diff --git a/HISTORY b/HISTORY
index b443539c..6303e572 100644
--- a/HISTORY
+++ b/HISTORY
@@ -6015,3 +6015,5 @@ Video Disk Recorder Revision History
Reinhard Nissl for making sure vdr-xine no longer needs this).
- Added missing '[]' to the delete operator in cMenuEditStrItem::~cMenuEditStrItem().
- Added missing virtual destructor to cPalette.
+- Now freeing configDirectory before setting it to a new value in
+ cPlugin::SetConfigDirectory().
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);
}