From a8af3ce0ddcbe9227987c398d3b2d9c8928b332a Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 24 Sep 2009 10:05:21 +0200 Subject: decoder/sidplay: free GError objects The caller is responsible fro freeing GError objects. That g_error_free() call was missing in two places. --- src/decoder/sidplay_plugin.cxx | 2 ++ 1 file changed, 2 insertions(+) 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); } } -- cgit v1.2.3