decoder/sidplay: free GError objects
The caller is responsible fro freeing GError objects. That g_error_free() call was missing in two places.
This commit is contained in:
parent
d657be33ba
commit
a8af3ce0dd
@ -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)
|
|||||||
} 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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user