online-accounts: free list-providers leak

Unref variants after using the goa-helper to list providers.
This commit is contained in:
Andy Holmes 2023-10-31 13:21:23 -07:00 committed by Felipe Borges
parent d3b0272f13
commit 30c65ceaed

View file

@ -412,7 +412,10 @@ list_providers (CcOnlineAccountsPanel *self)
g_variant_iter_init (&iter, providers_variant);
while ((provider = g_variant_iter_next_value (&iter)))
add_provider_row (self, provider);
{
add_provider_row (self, provider);
g_variant_unref (provider);
}
}
static void