mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2025-01-25 04:55:34 +00:00
emergency-calls-manager: Don't leak origin
g_list_model_get_item is transfer full
This commit is contained in:
parent
c8f0100172
commit
a78ca7e8de
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ handle_get_emergency_contacts (CallsDBusEmergencyCalls *object,
|
|||
g_variant_builder_init (&contacts_builder, G_VARIANT_TYPE (CONTACTS_FORMAT));
|
||||
|
||||
for (int i = 0; i < g_list_model_get_n_items (self->origins); i++) {
|
||||
CallsOrigin *origin = g_list_model_get_item (self->origins, i);
|
||||
g_autoptr (CallsOrigin) origin = g_list_model_get_item (self->origins, i);
|
||||
g_auto (GStrv) emergency_numbers = NULL;
|
||||
|
||||
emergency_numbers = calls_origin_get_emergency_numbers (origin);
|
||||
|
|
Loading…
Reference in a new issue