[gnome-online-accounts] identity: Consolidate the exit path
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-online-accounts] identity: Consolidate the exit path
- Date: Fri, 6 Jan 2017 12:19:33 +0000 (UTC)
commit ff5ad9e06c8cdc27514a5b0e5baf706b6403cc37
Author: Debarshi Ray <debarshir gnome org>
Date: Thu Jan 5 17:05:40 2017 +0100
identity: Consolidate the exit path
https://bugzilla.gnome.org/show_bug.cgi?id=776906
src/goaidentity/goaidentityservice.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/goaidentity/goaidentityservice.c b/src/goaidentity/goaidentityservice.c
index 6fa008b..0cc4d8b 100644
--- a/src/goaidentity/goaidentityservice.c
+++ b/src/goaidentity/goaidentityservice.c
@@ -839,8 +839,7 @@ on_account_added (GoaManager *manager,
&error))
{
g_task_return_error (operation_result, error);
- g_object_unref (operation_result);
- return;
+ goto out;
}
if (object_path != NULL && object_path[0] != '\0')
@@ -858,6 +857,7 @@ on_account_added (GoaManager *manager,
else
g_task_return_pointer (operation_result, object, g_object_unref);
+ out:
g_object_unref (operation_result);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]