telepathy-farstream: call-content: fix a memory leak

Olivier CrĂȘte tester at kemper.freedesktop.org
Sun Dec 18 16:27:16 UTC 2016


Module: telepathy-farstream
Branch: master
Commit: 0c9570ebacb7cead9bdb2a887d210aaf6db02a8e
URL:    http://cgit.freedesktop.org/telepathy/telepathy-farstream/commit/?id=0c9570ebacb7cead9bdb2a887d210aaf6db02a8e

Author: Fabrice Bellet <fabrice at bellet.info>
Date:   Sun Dec 11 19:18:07 2016 +0100

call-content: fix a memory leak

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

---

 telepathy-farstream/call-content.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/telepathy-farstream/call-content.c b/telepathy-farstream/call-content.c
index 3f26063..b4b7e78 100644
--- a/telepathy-farstream/call-content.c
+++ b/telepathy-farstream/call-content.c
@@ -1773,7 +1773,7 @@ find_codec (GList *codecs, FsCodec *codec)
 static GHashTable *
 fscodecs_to_media_descriptions (TfCallContent *self, GList *codecs)
 {
-  GPtrArray *tpcodecs = g_ptr_array_new ();
+  GPtrArray *tpcodecs = g_ptr_array_new_with_free_func ((GDestroyNotify) g_value_array_free);
   GList *item;
   GList *resend_codecs = NULL;
   GHashTable *retval = NULL;



More information about the telepathy-commits mailing list