Commit a8af3ce0 authored by Max Kellermann's avatar Max Kellermann

decoder/sidplay: free GError objects

The caller is responsible fro freeing GError objects. That g_error_free() call was missing in two places.
parent d657be33
...@@ -64,6 +64,7 @@ sidplay_init(const struct config_param *param) ...@@ -64,6 +64,7 @@ sidplay_init(const struct config_param *param)
G_KEY_FILE_NONE, &err)) { G_KEY_FILE_NONE, &err)) {
g_warning("unable to parse songlengths file %s: %s", g_warning("unable to parse songlengths file %s: %s",
songlength_file, err->message); songlength_file, err->message);
g_error_free(err);
g_key_file_free(songlength_database); g_key_file_free(songlength_database);
songlength_database=NULL; songlength_database=NULL;
} }
...@@ -72,6 +73,7 @@ sidplay_init(const struct config_param *param) ...@@ -72,6 +73,7 @@ sidplay_init(const struct config_param *param)
} else { } else {
g_warning("unable to read songlengths file %s: %s", g_warning("unable to read songlengths file %s: %s",
songlength_file, err->message); songlength_file, err->message);
g_error_free(err);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment