From 14235f171b71334e1a752cdf5c7fa63695fef9bd Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 14 Jan 2014 15:49:49 +0100 Subject: decoder/sidplay: use free() instead of g_free() This pointer was allocated by libc, not by GLib. --- src/decoder/SidplayDecoderPlugin.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/decoder/SidplayDecoderPlugin.cxx b/src/decoder/SidplayDecoderPlugin.cxx index 4921fcace..8b3e3f8c0 100644 --- a/src/decoder/SidplayDecoderPlugin.cxx +++ b/src/decoder/SidplayDecoderPlugin.cxx @@ -210,7 +210,7 @@ sidplay_file_decode(Decoder &decoder, const char *path_fs) char *path_container=get_container_name(path_fs); SidTune tune(path_container, nullptr, true); - g_free(path_container); + free(path_container); if (!tune) { LogWarning(sidplay_domain, "failed to load file"); return; @@ -347,7 +347,7 @@ sidplay_scan_file(const char *path_fs, char *path_container=get_container_name(path_fs); SidTune tune(path_container, nullptr, true); - g_free(path_container); + free(path_container); if (!tune) return false; -- cgit v1.2.3