[telepathy-gabble/master] Don't leak the intset returned by tp_handle_set_update

Sjoerd Simons sjoerd.simons at collabora.co.uk
Fri Dec 18 06:09:57 PST 2009


---
 src/capabilities.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/src/capabilities.c b/src/capabilities.c
index 0a241cf..ce2d622 100644
--- a/src/capabilities.c
+++ b/src/capabilities.c
@@ -471,10 +471,14 @@ void
 gabble_capability_set_update (GabbleCapabilitySet *target,
     const GabbleCapabilitySet *source)
 {
+  TpIntSet *ret;
   g_return_if_fail (target != NULL);
   g_return_if_fail (source != NULL);
 
-  tp_handle_set_update (target->handles, tp_handle_set_peek (source->handles));
+  ret = tp_handle_set_update (target->handles,
+    tp_handle_set_peek (source->handles));
+
+  tp_intset_destroy (ret);
 }
 
 typedef struct {
-- 
1.5.6.5




More information about the telepathy-commits mailing list