diff options
author | Jens Georg <mail@jensge.org> | 2021-07-03 19:36:57 +0200 |
---|---|---|
committer | Jens Georg <mail@jensge.org> | 2021-07-03 19:36:57 +0200 |
commit | bac93c09a2c0f9e68d04d6bbbbe30d038454a69f (patch) | |
tree | 63524ebbc7620b15da97be20462e221f36db5793 | |
parent | 0814d52988ae872233d814484d8c5c323b1e5362 (diff) | |
download | gupnp-bac93c09a2c0f9e68d04d6bbbbe30d038454a69f.tar.gz |
service-proxy: Minor g_clear_pointer use
-rw-r--r-- | libgupnp/gupnp-service-proxy.c | 5 |
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); |