summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2009-03-06 20:02:21 +0100
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2009-03-06 20:02:21 +0100
commit152830945646ca4230c60c92ce250d1a64c4f9d7 (patch)
tree6eef62e09c887e86a39309b9ce0feae9b5fda4ff
parent6b51d475b5554684c70de65b57ca51bb59b54030 (diff)
downloadgstreamer-plugins-bad-152830945646ca4230c60c92ce250d1a64c4f9d7.tar.gz
legacyresample: Fix memory leak in the unit test by unreffing the caps
-rw-r--r--tests/check/elements/legacyresample.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/check/elements/legacyresample.c b/tests/check/elements/legacyresample.c
index 4e804e3ea..26c572a62 100644
--- a/tests/check/elements/legacyresample.c
+++ b/tests/check/elements/legacyresample.c
@@ -86,6 +86,7 @@ setup_legacyresample (int channels, int inrate, int outrate)
* later */
gst_pad_set_caps (mysinkpad, caps);
gst_pad_use_fixed_caps (mysinkpad);
+ gst_caps_unref (caps);
gst_pad_set_active (mysinkpad, TRUE);
gst_pad_set_active (mysrcpad, TRUE);