search: Fix memory leak
The container returned by g_variant_get_strv() should be freed with g_free(). https://bugzilla.gnome.org/show_bug.cgi?id=783885
This commit is contained in:
parent
0232031571
commit
38ac1d1d76
1 changed files with 2 additions and 0 deletions
|
@ -374,6 +374,8 @@ switch_tracker_get_mapping (GValue *value,
|
|||
break;
|
||||
}
|
||||
|
||||
g_free (locations);
|
||||
|
||||
g_value_set_boolean (value, found);
|
||||
return TRUE;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue