summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Georg <mail@jensge.org>2021-07-03 19:36:57 +0200
committerJens Georg <mail@jensge.org>2021-07-03 19:36:57 +0200
commitbac93c09a2c0f9e68d04d6bbbbe30d038454a69f (patch)
tree63524ebbc7620b15da97be20462e221f36db5793
parent0814d52988ae872233d814484d8c5c323b1e5362 (diff)
downloadgupnp-bac93c09a2c0f9e68d04d6bbbbe30d038454a69f.tar.gz
service-proxy: Minor g_clear_pointer use
-rw-r--r--libgupnp/gupnp-service-proxy.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/libgupnp/gupnp-service-proxy.c b/libgupnp/gupnp-service-proxy.c
index 637eeae..9022344 100644
--- a/libgupnp/gupnp-service-proxy.c
+++ b/libgupnp/gupnp-service-proxy.c
@@ -278,10 +278,7 @@ gupnp_service_proxy_dispose (GObject *object)
}
/* Cancel pending notifications */
- if (priv->notify_idle_src) {
- g_source_destroy (priv->notify_idle_src);
- priv->notify_idle_src = NULL;
- }
+ g_clear_pointer (&priv->notify_idle_src, g_source_destroy);
g_list_free_full (priv->pending_notifies,
(GDestroyNotify) emit_notify_data_free);