playsink: plug element leak

This commit is contained in:
Mark Nauwelaerts 2012-03-08 15:17:40 +01:00
parent 752ba3149f
commit 5462536a36

View file

@ -194,6 +194,7 @@ gst_play_sink_convert_bin_remove_element (GstElement * element,
GstPlaySinkConvertBin * self)
{
gst_element_set_state (element, GST_STATE_NULL);
gst_object_unref (element);
gst_bin_remove (GST_BIN_CAST (self), element);
}