Commit 14235f17 authored by Max Kellermann's avatar Max Kellermann

decoder/sidplay: use free() instead of g_free()

This pointer was allocated by libc, not by GLib.
parent 1f90e3ce
......@@ -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;
......
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