summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@collabora.com>2020-09-18 17:45:22 -0400
committerOlivier CrĂȘte <olivier.crete@collabora.com>2020-09-18 17:45:22 -0400
commit61137b8a73a5734902a4a24caeae6312adfd85f4 (patch)
tree4a46ad54d6567d4f927bf315f0bc97ad7a5b556d
parent230402ec28183d92101ea967f5aaedd3289f0474 (diff)
downloadgupnp-igd-61137b8a73a5734902a4a24caeae6312adfd85f4.tar.gz
gupnp-simple-igd: Self is always passes, so it's always valid
-rw-r--r--libgupnp-igd/gupnp-simple-igd.c7
1 files 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