summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgnacio Casal Quinteiro <qignacio@amazon.com>2022-10-18 16:41:15 +0200
committerIgnacio Casal Quinteiro <qignacio@amazon.com>2022-10-18 16:47:44 +0200
commitc0c7462e3a055f8d774f446b4836bb3895871fa8 (patch)
tree6140eb64206409f5b7833a2fe7c53f9df5d11853
parent6816b3e47463e3192d83a555071c7d5efe701b91 (diff)
downloadgnome-settings-daemon-c0c7462e3a055f8d774f446b4836bb3895871fa8.tar.gz
smartcard-manager: minor cleanups
-rw-r--r--plugins/smartcard/gsd-smartcard-manager.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/smartcard/gsd-smartcard-manager.c b/plugins/smartcard/gsd-smartcard-manager.c
index 292ea63c..acd22df8 100644
--- a/plugins/smartcard/gsd-smartcard-manager.c
+++ b/plugins/smartcard/gsd-smartcard-manager.c
@@ -764,7 +764,8 @@ gsd_smartcard_manager_idle_cb (GsdSmartcardManager *self)
gnome_settings_profile_end (NULL);
self->start_idle_id = 0;
- return FALSE;
+
+ return G_SOURCE_REMOVE;
}
gboolean
@@ -971,8 +972,7 @@ gsd_smartcard_manager_finalize (GObject *object)
g_return_if_fail (self != NULL);
- if (self->start_idle_id != 0)
- g_source_remove (self->start_idle_id);
+ g_clear_handle_id (&self->start_idle_id, g_source_remove);
gsd_smartcard_manager_stop (self);