ximagesink: Fix caps leak

Unref caps when peer doesn't accept caps

Fixes #613198
This commit is contained in:
Reuben Dowle 2010-03-17 19:24:27 -03:00 committed by Thiago Santos
parent 433f18db8e
commit 621705f475

View file

@ -1864,6 +1864,7 @@ gst_ximagesink_buffer_alloc (GstBaseSink * bsink, guint64 offset, guint size,
desired_caps);
/* we alloc a buffer with the original incomming caps already in the
* width and height variables */
gst_caps_unref (desired_caps);
}
}