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;