[totem/wip/hadess/opendir-portal: 8/9] im-status: Simplify cancellable unref




commit 4cb04653aea84ac8a2642ea90bb48c4aa5ce4aec
Author: Bastien Nocera <hadess hadess net>
Date:   Tue May 24 13:22:16 2022 +0200

    im-status: Simplify cancellable unref

 src/plugins/im-status/totem-im-status.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/src/plugins/im-status/totem-im-status.c b/src/plugins/im-status/totem-im-status.c
index cb1546064..e34ff4a7a 100644
--- a/src/plugins/im-status/totem-im-status.c
+++ b/src/plugins/im-status/totem-im-status.c
@@ -176,8 +176,7 @@ impl_deactivate (PeasActivatable *plugin)
        /* In flight? */
        if (pi->cancellable != NULL) {
                g_cancellable_cancel (pi->cancellable);
-               g_object_unref (pi->cancellable);
-               pi->cancellable = NULL;
+               g_clear_object (&pi->cancellable);
        }
 
        if (pi->proxy != NULL) {


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