summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.net>2012-10-20 11:38:55 +0100
committerTim-Philipp Müller <tim@centricular.net>2012-10-20 12:11:52 +0100
commit889d86e512a459d5cacb121b1ae4e6b2a179c9e5 (patch)
tree3fc368f7aa5586ee1e11a16922c18cb31d16de7c
parentd965cc513ca8f217ee15e71cbd11bc9485208e3e (diff)
downloadgstreamer-plugins-base-889d86e512a459d5cacb121b1ae4e6b2a179c9e5.tar.gz
alsasink: fix caps leak in acceptcaps function
https://bugzilla.gnome.org/show_bug.cgi?id=681192
-rw-r--r--ext/alsa/gstalsasink.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/alsa/gstalsasink.c b/ext/alsa/gstalsasink.c
index 1f9147f3f..8682e0502 100644
--- a/ext/alsa/gstalsasink.c
+++ b/ext/alsa/gstalsasink.c
@@ -392,6 +392,7 @@ gst_alsasink_acceptcaps (GstPad * pad, GstCaps * caps)
ret = TRUE;
done:
+ gst_caps_replace (&spec.caps, NULL);
gst_object_unref (alsa);
return ret;
}