[gupnp-igd] gupnp-simple-igd: Self is always passes, so it's always valid
- From: Olivier Crête <tester src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gupnp-igd] gupnp-simple-igd: Self is always passes, so it's always valid
- Date: Fri, 18 Sep 2020 22:19:46 +0000 (UTC)
commit 61137b8a73a5734902a4a24caeae6312adfd85f4
Author: Olivier Crête <olivier crete collabora com>
Date: Fri Sep 18 17:45:22 2020 -0400
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]