FlatpakInstance: plug key file mem leak
`g_key_file_new` is called both in the decl section and later on, overwriting the previous one and losing the pointer. Fix this
This commit is contained in:
parent
95057812ae
commit
aaddc2752a
1 changed files with 1 additions and 1 deletions
|
|
@ -1095,7 +1095,7 @@ load_local_ref_fiber (LoadLocalRefData *data)
|
|||
if (g_str_has_suffix (uri, ".flatpakref"))
|
||||
{
|
||||
const char *resolved_uri = NULL;
|
||||
g_autoptr (GKeyFile) key_file = g_key_file_new ();
|
||||
g_autoptr (GKeyFile) key_file = NULL;
|
||||
g_autofree char *name = NULL;
|
||||
|
||||
if (g_str_has_prefix (uri, "flatpak+https"))
|
||||
|
|
|
|||
Loading…
Reference in a new issue