summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2009-08-26 15:13:18 +0000
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2009-08-26 15:13:18 +0000
commitd4e28010bec00e48100269e4f610949d78789257 (patch)
treed55a91c0bc23771d4f3fb167309c3035b7208e34
parentfee8ff9acf2d181d20140d32f71bbfd21f02c98f (diff)
ID-WSF 1.0: fix memory leak
* lasso/id-wsf/discovery.c (lasso_discovery_add_insert_entry): the rule is that callee is responsible for becoming owner of a resource, so no g_object_ref before a call on an argument.
-rw-r--r--lasso/id-wsf/discovery.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/lasso/id-wsf/discovery.c b/lasso/id-wsf/discovery.c
index 1fb450c6..5aa795d4 100644
--- a/lasso/id-wsf/discovery.c
+++ b/lasso/id-wsf/discovery.c
@@ -219,7 +219,6 @@ lasso_discovery_add_insert_entry(LassoDiscovery *discovery,
modify = LASSO_DISCO_MODIFY(LASSO_WSF_PROFILE(discovery)->request);
/* ResourceOffering elements being inserted MUST NOT contain entryID attributes. */
- serviceInstance = serviceInstance ? g_object_ref(serviceInstance) : serviceInstance;
resourceOffering = lasso_disco_resource_offering_new(serviceInstance);
lasso_assign_gobject(resourceOffering->ResourceID, resourceId);