[next] telepathy-glib: test_supports_tube: don't leak the classes array

Simon McVittie smcv at kemper.freedesktop.org
Wed May 2 08:47:10 PDT 2012


Module: telepathy-glib
Branch: next
Commit: 103bea9443286ba589a636a240f1ead028c7bf66
URL:    http://cgit.freedesktop.org/telepathy/telepathy-glib/commit/?id=103bea9443286ba589a636a240f1ead028c7bf66

Author: Guillaume Desmottes <guillaume.desmottes at collabora.co.uk>
Date:   Mon Apr 30 15:56:10 2012 +0200

test_supports_tube: don't leak the classes array

https://bugs.freedesktop.org/show_bug.cgi?id=30422

---

 tests/capabilities.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/tests/capabilities.c b/tests/capabilities.c
index ad108f5..c4e0476 100644
--- a/tests/capabilities.c
+++ b/tests/capabilities.c
@@ -448,6 +448,9 @@ test_supports_tube (Test *test,
       "contact-specific", FALSE,
       NULL);
 
+  g_boxed_free (TP_ARRAY_TYPE_REQUESTABLE_CHANNEL_CLASS_LIST,
+     classes);
+
   g_assert (tp_capabilities_supports_stream_tubes (caps, TP_HANDLE_TYPE_CONTACT,
         NULL));
   g_assert (!tp_capabilities_supports_stream_tubes (caps, TP_HANDLE_TYPE_ROOM,



More information about the telepathy-commits mailing list