ConfigData: use simple linked list instead of GSList

This commit is contained in:
Max Kellermann
2013-01-30 22:37:17 +01:00
parent e44e0fab9f
commit 378ebad1c8
4 changed files with 38 additions and 40 deletions

View File

@@ -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);
}