telepathy-farstream: call-content: fix another memory leak
Olivier CrĂȘte
tester at kemper.freedesktop.org
Sun Dec 18 16:27:16 UTC 2016
Module: telepathy-farstream
Branch: master
Commit: cd5910078b9d8f46fa411c093895d5f73432779b
URL: http://cgit.freedesktop.org/telepathy/telepathy-farstream/commit/?id=cd5910078b9d8f46fa411c093895d5f73432779b
Author: Fabrice Bellet <fabrice at bellet.info>
Date: Thu Dec 15 11:26:47 2016 +0100
call-content: fix another memory leak
https://bugs.freedesktop.org/show_bug.cgi?id=99124
---
telepathy-farstream/call-content.c | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/telepathy-farstream/call-content.c b/telepathy-farstream/call-content.c
index b4b7e78..85089d3 100644
--- a/telepathy-farstream/call-content.c
+++ b/telepathy-farstream/call-content.c
@@ -2213,16 +2213,19 @@ tf_call_content_error_literal (TfCallContent *self,
const gchar *detailed_reason,
const gchar *message)
{
+ GValueArray *array;
+
g_debug ("Content error: %s", message);
- tp_cli_call_content_interface_media_call_fail (
- self->proxy, -1,
- tp_value_array_build (4,
+ array = tp_value_array_build (4,
G_TYPE_UINT, 0,
G_TYPE_UINT, reason,
G_TYPE_STRING, detailed_reason,
G_TYPE_STRING, message,
- G_TYPE_INVALID),
+ G_TYPE_INVALID);
+ tp_cli_call_content_interface_media_call_fail (
+ self->proxy, -1, array,
NULL, NULL, NULL, NULL);
+ tp_value_array_free (array);
}
More information about the telepathy-commits
mailing list