Commit 116f778d authored by Jens Georg's avatar Jens Georg Committed by Zeeshan Ali (Khattak)

Unref server after call to unhost_path

Otherwise unhost_path will lazy-create a new SoupServer
parent 5f9cb20d
......@@ -234,11 +234,6 @@ gupnp_context_dispose (GObject *object)
context->priv->session = NULL;
}
if (context->priv->server) {
g_object_unref (context->priv->server);
context->priv->server = NULL;
}
while (context->priv->host_path_datas) {
HostPathData *data;
......@@ -247,6 +242,11 @@ gupnp_context_dispose (GObject *object)
gupnp_context_unhost_path (context, data->server_path);
}
if (context->priv->server) {
g_object_unref (context->priv->server);
context->priv->server = NULL;
}
/* Call super */
object_class = G_OBJECT_CLASS (gupnp_context_parent_class);
object_class->dispose (object);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment