diff options
author | Max Kellermann <max@duempel.org> | 2013-01-30 22:02:48 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-01-30 22:20:13 +0100 |
commit | d25195447a3a690fa1d508871d4b15ade928b2b0 (patch) | |
tree | 59aa3e69ca6769491f890582bb25ad964a933afd | |
parent | aa8ab2fc89ee6d172e8015c95cf6ee800d8e3841 (diff) | |
download | mpd-d25195447a3a690fa1d508871d4b15ade928b2b0.tar.gz mpd-d25195447a3a690fa1d508871d4b15ade928b2b0.tar.xz mpd-d25195447a3a690fa1d508871d4b15ade928b2b0.zip |
ConfigData: use new/delete instead of GLib
-rw-r--r-- | src/ConfigData.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ConfigData.cxx b/src/ConfigData.cxx index 8228940e5..7bd04e7c2 100644 --- a/src/ConfigData.cxx +++ b/src/ConfigData.cxx @@ -34,7 +34,7 @@ extern "C" { struct config_param * config_new_param(const char *value, int line) { - struct config_param *ret = g_new(struct config_param, 1); + config_param *ret = new config_param(); if (!value) ret->value = NULL; @@ -63,7 +63,7 @@ config_param_free(struct config_param *param) if (param->num_block_params) g_free(param->block_params); - g_free(param); + delete param; } void |