summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGaurav Gupta <g.gupta@samsung.com>2016-10-06 11:15:54 +0530
committerSebastian Dröge <sebastian@centricular.com>2016-10-06 13:23:28 +0300
commit6542edd9098aad98c0ac18f0ba5a4650932e14e1 (patch)
tree9dc7431ca25fd0bcfcb9f2ce93908507c4185532 /tests
parent6fe40c92bf3504e786c70d26f1184ea8fc3a5f0d (diff)
tests: Fix memory leak in test rtpaux test
https://bugzilla.gnome.org/show_bug.cgi?id=772496
Diffstat (limited to 'tests')
-rw-r--r--tests/examples/rtp/client-rtpaux.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/examples/rtp/client-rtpaux.c b/tests/examples/rtp/client-rtpaux.c
index 011fcce85..890dc1af9 100644
--- a/tests/examples/rtp/client-rtpaux.c
+++ b/tests/examples/rtp/client-rtpaux.c
@@ -163,10 +163,13 @@ request_pt_map (GstElement * rtpbin, guint session, guint pt,
gpointer user_data)
{
SessionData *data = (SessionData *) user_data;
+ gchar *caps_str;
g_print ("Looking for caps for pt %u in session %u, have %u\n", pt, session,
data->sessionNum);
if (session == data->sessionNum) {
- g_print ("Returning %s\n", gst_caps_to_string (data->caps));
+ caps_str = gst_caps_to_string (data->caps);
+ g_print ("Returning %s\n", caps_str);
+ g_free (caps_str);
return gst_caps_ref (data->caps);
}
return NULL;