From: Jussi Laako Date: Thu, 28 Feb 2013 16:51:32 +0000 (+0200) Subject: - Unref the identity when session is finalized X-Git-Tag: upstream/2.4.0^2~118 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7e394d3a07d46eb3c6d85f91f682ff95c4aa5b15;p=platform%2Fupstream%2Flibgsignon-glib.git - Unref the identity when session is finalized - Some more debug printouts --- diff --git a/libsignon-glib/signon-auth-session.c b/libsignon-glib/signon-auth-session.c index 48e8b76..992efa8 100644 --- a/libsignon-glib/signon-auth-session.c +++ b/libsignon-glib/signon-auth-session.c @@ -149,6 +149,7 @@ auth_session_process_reply (GObject *object, GAsyncResult *res, GError *error = NULL; g_return_if_fail (res_process != NULL); + DEBUG ("%s %d", G_STRFUNC, __LINE__); sso_auth_session_call_process_finish (proxy, &reply, res, &error); @@ -206,6 +207,8 @@ auth_session_process_ready_cb (gpointer object, const GError *error, gpointer us return; } + DEBUG ("%s %d", G_STRFUNC, __LINE__); + process_data = g_object_get_data ((GObject *)res, data_key_process); g_return_if_fail (process_data != NULL); @@ -234,6 +237,8 @@ process_async_cb_wrapper (GObject *object, GAsyncResult *res, GError *error = NULL; gboolean cancelled; + DEBUG ("%s %d", G_STRFUNC, __LINE__); + v_reply = signon_auth_session_process_finish (self, res, &error); cancelled = error != NULL && @@ -352,6 +357,7 @@ signon_auth_session_finalize (GObject *object) g_return_if_fail (priv != NULL); g_free (priv->method_name); + g_object_unref (priv->identity); G_OBJECT_CLASS (signon_auth_session_parent_class)->finalize (object); } @@ -553,6 +559,7 @@ signon_auth_session_process (SignonAuthSession *self, GVariant *v_session_data; g_return_if_fail (SIGNON_IS_AUTH_SESSION (self)); + DEBUG ("%s %d", G_STRFUNC, __LINE__); AuthSessionProcessCbData *cb_data = g_slice_new0 (AuthSessionProcessCbData); cb_data->cb = cb; diff --git a/tests/check_signon.c b/tests/check_signon.c index 7e9f0ec..623393c 100644 --- a/tests/check_signon.c +++ b/tests/check_signon.c @@ -40,6 +40,7 @@ #include #include #include +#include #include #include