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:
Mohammed Sadiq 2017-06-17 11:03:30 +05:30 committed by Rui Matos
parent 0232031571
commit 38ac1d1d76

View file

@ -374,6 +374,8 @@ switch_tracker_get_mapping (GValue *value,
break;
}
g_free (locations);
g_value_set_boolean (value, found);
return TRUE;
}