summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2022-05-24 13:22:16 +0200
committerBastien Nocera <hadess@hadess.net>2022-05-24 13:23:27 +0200
commit4cb04653aea84ac8a2642ea90bb48c4aa5ce4aec (patch)
tree2159b04a06e4287942afcf130f14bd705cf5731a
parent3cecd567ba479715a260cce919b264a31e8b7e12 (diff)
downloadtotem-4cb04653aea84ac8a2642ea90bb48c4aa5ce4aec.tar.gz
im-status: Simplify cancellable unref
-rw-r--r--src/plugins/im-status/totem-im-status.c3
1 files changed, 1 insertions, 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) {