From 4d2d8552dcc88e4df8a7c09ec95ff44c8cce9aa2 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Fri, 1 Aug 2008 14:10:05 +0000 Subject: fix a reference counting error when building response message --- lasso/id-wsf/discovery.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lasso/id-wsf/discovery.c b/lasso/id-wsf/discovery.c index 2bf1f0e2..bf5a7553 100644 --- a/lasso/id-wsf/discovery.c +++ b/lasso/id-wsf/discovery.c @@ -917,6 +917,8 @@ lasso_discovery_build_response_msg(LassoDiscovery *discovery) /* build response */ response = lasso_disco_query_response_new( lasso_utility_status_new(LASSO_DST_STATUS_CODE_OK)); + /* Keep refcount coherency */ + g_list_foreach(offerings, (GFunc)g_object_ref, NULL); response->ResourceOffering = offerings; profile->response = LASSO_NODE(response); envelope = profile->soap_envelope_response; -- cgit