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

This pointer was allocated by libc, not by GLib.
This commit is contained in:
Max Kellermann 2014-01-14 15:49:49 +01:00
parent 1f90e3ce7f
commit 14235f171b
1 changed files with 2 additions and 2 deletions

View File

@ -210,7 +210,7 @@ sidplay_file_decode(Decoder &decoder, const char *path_fs)
char *path_container=get_container_name(path_fs); char *path_container=get_container_name(path_fs);
SidTune tune(path_container, nullptr, true); SidTune tune(path_container, nullptr, true);
g_free(path_container); free(path_container);
if (!tune) { if (!tune) {
LogWarning(sidplay_domain, "failed to load file"); LogWarning(sidplay_domain, "failed to load file");
return; return;
@ -347,7 +347,7 @@ sidplay_scan_file(const char *path_fs,
char *path_container=get_container_name(path_fs); char *path_container=get_container_name(path_fs);
SidTune tune(path_container, nullptr, true); SidTune tune(path_container, nullptr, true);
g_free(path_container); free(path_container);
if (!tune) if (!tune)
return false; return false;