[gnome-keyring] login: Don't call g_object_unref() on NULL



commit bd2e0122459c19994a8a8744bf8d2724d71576a3
Author: Daiki Ueno <dueno src gnome org>
Date:   Fri Feb 16 16:17:52 2018 +0100

    login: Don't call g_object_unref() on NULL

 daemon/login/gkd-login.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/daemon/login/gkd-login.c b/daemon/login/gkd-login.c
index 75c2441..4d8aee1 100644
--- a/daemon/login/gkd-login.c
+++ b/daemon/login/gkd-login.c
@@ -454,9 +454,9 @@ gkd_login_available (GckSession *session)
                        available = TRUE;
                }
                g_list_free_full (objects, g_object_unref);
+               g_object_unref (session);
        }
 
-       g_object_unref (session);
        return available;
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]