diff options
-rw-r--r-- | libgupnp-igd/gupnp-simple-igd.c | 7 |
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 |