mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Now freeing configDirectory before setting it to a new value in cPlugin::SetConfigDirectory()
This commit is contained in:
parent
9ff445dce4
commit
8114d7c63e
2
HISTORY
2
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().
|
||||
|
3
plugin.c
3
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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user