tests: camerabin2: Fix message leak in tests
authorThiago Santos <thiago.sousa.santos@collabora.com>
Wed, 28 Dec 2011 19:57:25 +0000 (16:57 -0300)
committerThiago Santos <thiago.sousa.santos@collabora.com>
Wed, 28 Dec 2011 19:57:25 +0000 (16:57 -0300)
tests/check/elements/camerabin2.c

index 4681a91ec095e45fcc87066c06009e97b338c812..f39e4aaaf09181eb5a8f3ffd720fa4c19ad16183 100644 (file)
@@ -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;