From f1b99f04dc56b4a0c801c94cd7096f059eab314c Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Fri, 27 Jun 2014 17:35:32 -0300 Subject: [PATCH] tests: camerabin: fix caps leak in test The gst_query_set_caps_result doesn't take ownership of caps --- tests/check/elements/camerabin.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/check/elements/camerabin.c b/tests/check/elements/camerabin.c index 5816aaf656..0061606971 100644 --- a/tests/check/elements/camerabin.c +++ b/tests/check/elements/camerabin.c @@ -134,6 +134,7 @@ gst_test_camera_src_query (GstPad * pad, GstObject * parent, GstQuery * query) gst_caps_unref (tmp); } gst_query_set_caps_result (query, result); + gst_caps_unref (result); ret = TRUE; } break;