another attempt to resolve the crash, happening during processing of "unregistered...
authorAlexander Akimov <ext-alexander.akimov@nokia.com>
Thu, 7 Oct 2010 05:29:36 +0000 (08:29 +0300)
committerAlexander Akimov <ext-alexander.akimov@nokia.com>
Thu, 7 Oct 2010 05:29:36 +0000 (08:29 +0300)
libsignon-glib/signon-auth-session.c

index c6c4b3ad02bbcf98473d2544b36fa868f9fce709..78d14d94c9b37ebf511e9278a823f43de4e5baec 100644 (file)
@@ -156,8 +156,6 @@ signon_auth_session_dispose (GObject *object)
 
     if (priv->proxy)
     {
-        com_nokia_SingleSignOn_AuthSession_object_unref (priv->proxy, &err);
-
         dbus_g_proxy_disconnect_signal (priv->proxy,
                                         "stateChanged",
                                         G_CALLBACK (auth_session_state_changed_cb),
@@ -167,7 +165,9 @@ signon_auth_session_dispose (GObject *object)
                                         G_CALLBACK (auth_session_remote_object_destroyed_cb),
                                         self);
 
+        com_nokia_SingleSignOn_AuthSession_object_unref (priv->proxy, &err);
         g_object_unref (priv->proxy);
+
         priv->proxy = NULL;
     }