[gnome-online-accounts] identity: Fix ensure_credentials_for_accounts() leak
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-online-accounts] identity: Fix ensure_credentials_for_accounts() leak
- Date: Thu, 5 Jan 2017 12:52:44 +0000 (UTC)
commit bcc2cfaf720c0d5ccd45c35f746f616dc2ff8e58
Author: Christophe Fergeau <cfergeau redhat com>
Date: Tue Jul 19 22:38:04 2016 +0200
identity: Fix ensure_credentials_for_accounts() leak
The list returned by goa_client_get_accounts() is (transfer full).
ensure_credentials_for_accounts() was not freeing it.
src/goaidentity/goaidentityservice.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/goaidentity/goaidentityservice.c b/src/goaidentity/goaidentityservice.c
index cc5d1ce..aa54731 100644
--- a/src/goaidentity/goaidentityservice.c
+++ b/src/goaidentity/goaidentityservice.c
@@ -1637,6 +1637,8 @@ ensure_credentials_for_accounts (GoaIdentityService *self)
ensure_account_credentials (self, object);
}
+
+ g_list_free_full (accounts, g_object_unref);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]