alsasink: fix caps leak in acceptcaps function
authorTim-Philipp Müller <tim@centricular.net>
Sat, 20 Oct 2012 10:38:55 +0000 (11:38 +0100)
committerTim-Philipp Müller <tim@centricular.net>
Sat, 20 Oct 2012 10:38:55 +0000 (11:38 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=681192

ext/alsa/gstalsasink.c

index 0c71ac1..0439e97 100644 (file)
@@ -377,6 +377,7 @@ gst_alsasink_acceptcaps (GstAlsaSink * alsa, GstCaps * caps)
   ret = TRUE;
 
 done:
+  gst_caps_replace (&spec.caps, NULL);
   return ret;
 }