[Telepathy-commits] [telepathy-glib/master] tp_connection_unref_handles: if no handles are to be released, don't leak memory

Simon McVittie simon.mcvittie at collabora.co.uk
Wed Oct 22 02:47:22 PDT 2008


---
 telepathy-glib/connection-handles.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/telepathy-glib/connection-handles.c b/telepathy-glib/connection-handles.c
index 0726eaf..6d1ff10 100644
--- a/telepathy-glib/connection-handles.c
+++ b/telepathy-glib/connection-handles.c
@@ -338,6 +338,10 @@ tp_connection_unref_handles (TpConnection *self,
       tp_cli_connection_call_release_handles (self, -1,
           handle_type, unref, post_unref, unref, array_free_TRUE, NULL);
     }
+  else
+    {
+      g_array_free (unref, TRUE);
+    }
 }
 
 
-- 
1.5.6.5




More information about the Telepathy-commits mailing list