From 2df5760a79c3b74130d1bceae861703499596ebc Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Wed, 28 Dec 2011 16:57:25 -0300 Subject: [PATCH] tests: camerabin2: Fix message leak in tests --- tests/check/elements/camerabin2.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/check/elements/camerabin2.c b/tests/check/elements/camerabin2.c index 4681a91ec0..f39e4aaaf0 100644 --- a/tests/check/elements/camerabin2.c +++ b/tests/check/elements/camerabin2.c @@ -612,6 +612,8 @@ wait_for_element_message (GstElement * camera, const gchar * name, if (gst_structure_has_name (st, name)) break; + else + gst_message_unref (msg); } else { gst_message_unref (msg); msg = NULL;