search: Fix memory leak
g_variant_get_strv() returns newly allocated memory. This should be freed when no longer required. https://bugzilla.gnome.org/show_bug.cgi?id=782048
This commit is contained in:
parent
dce6fe6add
commit
a09a5d7e9e
1 changed files with 1 additions and 0 deletions
|
@ -406,6 +406,7 @@ switch_settings_mapping_get_generic (GValue *value,
|
|||
}
|
||||
}
|
||||
|
||||
g_free (apps);
|
||||
g_value_set_boolean (value, !!default_enabled != !!found);
|
||||
|
||||
return TRUE;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue