diff options
author | Max Kellermann <max@duempel.org> | 2013-01-30 22:37:17 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-01-30 22:39:24 +0100 |
commit | 378ebad1c8d7079b41319600f13c1c884d6c693a (patch) | |
tree | f65564ce3a0fffde7fd0bdbf1c9040de3a15041e /src/ConfigData.cxx | |
parent | e44e0fab9f0851d5a369778923c03701e31b9e79 (diff) | |
download | mpd-378ebad1c8d7079b41319600f13c1c884d6c693a.tar.gz mpd-378ebad1c8d7079b41319600f13c1c884d6c693a.tar.xz mpd-378ebad1c8d7079b41319600f13c1c884d6c693a.zip |
ConfigData: use simple linked list instead of GSList
Diffstat (limited to '')
-rw-r--r-- | src/ConfigData.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ConfigData.cxx b/src/ConfigData.cxx index 7e16c0126..48e9612d4 100644 --- a/src/ConfigData.cxx +++ b/src/ConfigData.cxx @@ -32,10 +32,11 @@ extern "C" { #include <stdlib.h> config_param::config_param(const char *_value, int _line) - :value(g_strdup(_value)), line(_line) {} + :next(nullptr), value(g_strdup(_value)), line(_line) {} config_param::~config_param() { + delete next; g_free(value); } |