aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder/sidplay_plugin.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-09-24 10:05:21 +0200
committerMax Kellermann <max@duempel.org>2009-09-24 10:05:21 +0200
commita8af3ce0ddcbe9227987c398d3b2d9c8928b332a (patch)
treebd1934b5e0355a764f3937933a5bb911e2b93998 /src/decoder/sidplay_plugin.cxx
parentd657be33baa1619cc488beadae3e48872548a7c7 (diff)
downloadmpd-a8af3ce0ddcbe9227987c398d3b2d9c8928b332a.tar.gz
mpd-a8af3ce0ddcbe9227987c398d3b2d9c8928b332a.tar.xz
mpd-a8af3ce0ddcbe9227987c398d3b2d9c8928b332a.zip
decoder/sidplay: free GError objects
The caller is responsible fro freeing GError objects. That g_error_free() call was missing in two places.
Diffstat (limited to '')
-rw-r--r--src/decoder/sidplay_plugin.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/decoder/sidplay_plugin.cxx b/src/decoder/sidplay_plugin.cxx
index 84afd7add..55974b428 100644
--- a/src/decoder/sidplay_plugin.cxx
+++ b/src/decoder/sidplay_plugin.cxx
@@ -64,6 +64,7 @@ sidplay_init(const struct config_param *param)
G_KEY_FILE_NONE, &err)) {
g_warning("unable to parse songlengths file %s: %s",
songlength_file, err->message);
+ g_error_free(err);
g_key_file_free(songlength_database);
songlength_database=NULL;
}
@@ -72,6 +73,7 @@ sidplay_init(const struct config_param *param)
} else {
g_warning("unable to read songlengths file %s: %s",
songlength_file, err->message);
+ g_error_free(err);
}
}