[0.10] gst-plugins-good: tests: fix caps leak in videocrop test

Tim Müller tpm at kemper.freedesktop.org
Wed Jan 18 03:55:42 PST 2012


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

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

tests: fix caps leak in videocrop 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