diff options
author | Claudio Takahasi <claudio.takahasi@openbossa.org> | 2007-04-17 20:40:45 +0000 |
---|---|---|
committer | Claudio Takahasi <claudio.takahasi@openbossa.org> | 2007-04-17 20:40:45 +0000 |
commit | 5e225e3d197b9a02617153ac570755cc4d13226b (patch) | |
tree | e428e1e62de704069ff1b3e8a3eb638530ffa171 /input/server.c | |
parent | 4136e617c4f8ab7dfc3488708c8ba129910dc597 (diff) |
input: dbus_pending_call_unref code standard
Diffstat (limited to 'input/server.c')
-rw-r--r-- | input/server.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/input/server.c b/input/server.c index d4bf977f..2fb4e68f 100644 --- a/input/server.c +++ b/input/server.c @@ -177,14 +177,11 @@ static void authorization_callback(DBusPendingCall *pcall, void *data) close(session->ctrl_sk); g_free(session); - - goto failed; + } else { + create_device(session); } - create_device(session); -failed: dbus_message_unref(reply); - dbus_pending_call_unref(pcall); } static int authorize_device(struct session_data *session) @@ -214,6 +211,7 @@ static int authorize_device(struct session_data *session) return -EACCES; dbus_pending_call_set_notify(pending, authorization_callback, session, NULL); + dbus_pending_call_unref(pending); dbus_message_unref(msg); return 0; |