[gnome-online-accounts/gnome-3-14] Don't leak account in GoaMediaServerProvider::build_object()
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-online-accounts/gnome-3-14] Don't leak account in GoaMediaServerProvider::build_object()
- Date: Mon, 14 Sep 2015 13:48:38 +0000 (UTC)
commit 36da186dc55d56c5349372c1a6d27364355d5d2f
Author: Christophe Fergeau <cfergeau redhat com>
Date: Sun May 3 21:02:46 2015 +0200
Don't leak account in GoaMediaServerProvider::build_object()
The GoaAccount returned from goa_object_get_account() must be unref'ed
when no longer needed.
https://bugzilla.gnome.org/show_bug.cgi?id=752939
src/goabackend/goamediaserverprovider.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/goabackend/goamediaserverprovider.c b/src/goabackend/goamediaserverprovider.c
index 2dc8fd6..eded24c 100644
--- a/src/goabackend/goamediaserverprovider.c
+++ b/src/goabackend/goamediaserverprovider.c
@@ -116,6 +116,7 @@ build_object (GoaProvider *provider,
mediaserver = NULL;
photos = NULL;
+ account = NULL;
ret = FALSE;
/* Chain up */
@@ -173,6 +174,7 @@ build_object (GoaProvider *provider,
ret = TRUE;
out:
+ g_clear_object (&account);
g_clear_object (&mediaserver);
g_clear_object (&photos);
return ret;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]