diff options
author | Gaurav Gupta <g.gupta@samsung.com> | 2016-10-06 11:15:54 +0530 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2016-10-06 13:23:28 +0300 |
commit | 6542edd9098aad98c0ac18f0ba5a4650932e14e1 (patch) | |
tree | 9dc7431ca25fd0bcfcb9f2ce93908507c4185532 /tests | |
parent | 6fe40c92bf3504e786c70d26f1184ea8fc3a5f0d (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.c | 5 |
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; |