summaryrefslogtreecommitdiffstats
path: root/tests/check
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 /tests/check
parent6b51d475b5554684c70de65b57ca51bb59b54030 (diff)
downloadgst-plugins-bad-152830945646ca4230c60c92ce250d1a64c4f9d7.tar.gz
gst-plugins-bad-152830945646ca4230c60c92ce250d1a64c4f9d7.tar.bz2
gst-plugins-bad-152830945646ca4230c60c92ce250d1a64c4f9d7.zip
legacyresample: Fix memory leak in the unit test by unreffing the caps
Diffstat (limited to 'tests/check')
-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 4e804e3e..26c572a6 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);