[0.10] gst-plugins-bad: tests: camerabin2: Fix message leak in tests

Tim Müller tpm at kemper.freedesktop.org
Wed Jan 4 10:07:56 PST 2012


Module: gst-plugins-bad
Branch: 0.10
Commit: dfcea1a2242bc3172cc506c2b0e49df3495763ef
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=dfcea1a2242bc3172cc506c2b0e49df3495763ef

Author: Thiago Santos <thiago.sousa.santos at collabora.com>
Date:   Wed Dec 28 16:57:25 2011 -0300

tests: camerabin2: Fix message leak in tests

---

 tests/check/elements/camerabin2.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/tests/check/elements/camerabin2.c b/tests/check/elements/camerabin2.c
index 4681a91..f39e4aa 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;



More information about the gstreamer-commits mailing list