From 61137b8a73a5734902a4a24caeae6312adfd85f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Cr=C3=AAte?= Date: Fri, 18 Sep 2020 17:45:22 -0400 Subject: gupnp-simple-igd: Self is always passes, so it's always valid --- libgupnp-igd/gupnp-simple-igd.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/libgupnp-igd/gupnp-simple-igd.c b/libgupnp-igd/gupnp-simple-igd.c index 3a68dff..1517981 100644 --- a/libgupnp-igd/gupnp-simple-igd.c +++ b/libgupnp-igd/gupnp-simple-igd.c @@ -384,11 +384,8 @@ _service_proxy_delete_port_mapping (GObject *source_object, GAsyncResult *res, if (action) gupnp_service_proxy_action_unref (action); - if (self) - { - self->priv->deleting_count--; - g_object_unref (self); - } + self->priv->deleting_count--; + g_object_unref (self); } static void -- cgit v1.2.1