gst-plugins-good: tests: fix caps leak in videotestsrc test

Vincent Penquerc'h vincent at kemper.freedesktop.org
Fri Jan 13 07:58:48 PST 2012


Module: gst-plugins-good
Branch: master
Commit: 4c2a2063cf20cf49e81213b156106ae4b541ad7c
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-good/commit/?id=4c2a2063cf20cf49e81213b156106ae4b541ad7c

Author: Vincent Penquerc'h <vincent.penquerch at collabora.co.uk>
Date:   Fri Jan 13 15:57:20 2012 +0000

tests: fix caps leak in videotestsrc test

---

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

diff --git a/tests/check/elements/videocrop.c b/tests/check/elements/videocrop.c
index 19b5c17..fc7c5dc 100644
--- a/tests/check/elements/videocrop.c
+++ b/tests/check/elements/videocrop.c
@@ -350,6 +350,7 @@ GST_START_TEST (test_crop_to_1x1)
 
     if (g_strcmp0 (gst_structure_get_name (s), "video/x-raw-gray") == 0) {
       /* videotestsrc does not support this format */
+      gst_caps_unref (caps);
       continue;
     }
 



More information about the gstreamer-commits mailing list