summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2010-09-21 15:21:46 +0100
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2010-09-22 18:09:11 +0100
commit736129227f8e16cfa6db1260f6276a3dd7f2ed2b (patch)
tree070460dfcc2bb91f3d5c195a200590da53d0d1af
parentd917e3cd439f8282c88804a85c2d3d238483308e (diff)
downloadtelepathy-gabble-736129227f8e16cfa6db1260f6276a3dd7f2ed2b.tar.gz
call_stream_endpoint_new_candidates_cb: don't leak contents of array
gabble_call_candidates_to_array returns a dbus-glib boxed type whose contents need to be freed explicitly.
-rw-r--r--src/call-stream-endpoint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/call-stream-endpoint.c b/src/call-stream-endpoint.c
index 864f8d8a3..c57165f59 100644
--- a/src/call-stream-endpoint.c
+++ b/src/call-stream-endpoint.c
@@ -356,7 +356,7 @@ call_stream_endpoint_new_candidates_cb (GabbleJingleContent *content,
arr = gabble_call_candidates_to_array (candidates);
gabble_svc_call_stream_endpoint_emit_remote_candidates_added (self,
arr);
- g_ptr_array_unref (arr);
+ g_boxed_free (GABBLE_ARRAY_TYPE_CANDIDATE_LIST, arr);
}
static void