mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2024-11-04 15:41:19 +00:00
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:
parent
5e42a2c053
commit
b60680f645
2 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -122,7 +122,7 @@ add_origin (CallsMMProvider *self,
|
|||
GDBusObject *object)
|
||||
{
|
||||
MMObject *mm_obj;
|
||||
CallsMMOrigin *origin;
|
||||
g_autoptr (CallsMMOrigin) origin = NULL;
|
||||
const gchar *path;
|
||||
|
||||
mm_obj = MM_OBJECT (object);
|
||||
|
|
Loading…
Reference in a new issue