plugins: fix memory leaks with respect to items in GListStore

This was probably missed by accident in eda460ac where oFono's origin
did get the g_autoptr treatment.
This commit is contained in:
Evangelos Ribeiro Tzaras
2021-03-23 09:48:21 +01:00
parent 5e42a2c053
commit b60680f645
2 changed files with 4 additions and 2 deletions

View File

@@ -154,7 +154,9 @@ void
calls_dummy_provider_add_origin (CallsDummyProvider *self,
const gchar *name)
{
CallsDummyOrigin *origin = calls_dummy_origin_new (name);
g_autoptr (CallsDummyOrigin) origin = NULL;
origin = calls_dummy_origin_new (name);
g_list_store_append (self->origins, origin);
}