From 9efa02e63a18959606b914092582a2b9fe0d030d Mon Sep 17 00:00:00 2001 From: Marco Trevisan Date: Tue, 18 Apr 2023 18:53:09 +0200 Subject: account-service: Do not unref UserManager owned user act_user_manager_get_user() is a transfer-none function as users are cached internally and the ownership is not passed around, so we should not unref the user, or it will be destroyed during loading. --- src/im-accounts-service.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/im-accounts-service.c b/src/im-accounts-service.c index dc51b9f..4051208 100644 --- a/src/im-accounts-service.c +++ b/src/im-accounts-service.c @@ -149,7 +149,6 @@ on_user_manager_loaded (ActUserManager * manager, GParamSpec * pspect, gpointer user = act_user_manager_get_user(priv->user_manager, g_get_user_name()); if (user != NULL) { user_changed(priv->user_manager, user, user_data); - g_object_unref(user); } } -- cgit v1.2.3