diff options
author | Max Kellermann <max@duempel.org> | 2013-10-15 22:32:39 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-10-15 22:49:01 +0200 |
commit | 7de96275dd6e3b6997e799413e4537561041e199 (patch) | |
tree | 4eab0c018168c14eb22f9e086917d16ef3f8f6a8 /src/ConfigData.cxx | |
parent | e13d0bf65653550c4cfe3f879441139f5242d8b1 (diff) | |
download | mpd-7de96275dd6e3b6997e799413e4537561041e199.tar.gz mpd-7de96275dd6e3b6997e799413e4537561041e199.tar.xz mpd-7de96275dd6e3b6997e799413e4537561041e199.zip |
ConfigData: use std::string for config_param::value
Diffstat (limited to '')
-rw-r--r-- | src/ConfigData.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ConfigData.cxx b/src/ConfigData.cxx index 611c5b91a..65cb63c97 100644 --- a/src/ConfigData.cxx +++ b/src/ConfigData.cxx @@ -58,12 +58,11 @@ block_param::GetBoolValue() const } config_param::config_param(const char *_value, int _line) - :next(nullptr), value(g_strdup(_value)), line(_line) {} + :next(nullptr), value(_value), line(_line) {} config_param::~config_param() { delete next; - g_free(value); } const block_param * |