summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Georg <mail@jensge.org>2011-11-05 12:06:29 +0100
committerOlivier CrĂȘte <olivier.crete@collabora.com>2011-11-07 12:48:26 -0500
commit64c732881c7db22da4ebe850099fac7525b74e5b (patch)
treefb5e6862be7f07096704c7e7fec72188003c7184
parentc157ab0dcf557d6faf6e0622a86729f483419556 (diff)
downloadgupnp-igd-64c732881c7db22da4ebe850099fac7525b74e5b.tar.gz
Don't leak control points
_manage_control_points calls add_ref, so it's necessary to drop the initial reference after the call.
-rw-r--r--libgupnp-igd/gupnp-simple-igd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libgupnp-igd/gupnp-simple-igd.c b/libgupnp-igd/gupnp-simple-igd.c
index 5e84f1e..db56d45 100644
--- a/libgupnp-igd/gupnp-simple-igd.c
+++ b/libgupnp-igd/gupnp-simple-igd.c
@@ -477,6 +477,7 @@ gupnp_simple_igd_add_control_point (GUPnPSimpleIgd *self,
gupnp_context_manager_manage_control_point (
self->priv->gupnp_context_manager, cp);
+ g_object_unref (cp);
}
static void