[885/906] filter: free our data

plugs some memory leaks

https://bugzilla.gnome.org/show_bug.cgi?id=724816
This commit is contained in:
Matthew Waters 2014-02-21 15:25:22 +11:00
parent d57403ab98
commit 506e4fc793

View file

@ -225,6 +225,16 @@ gst_gl_filter_reset (GstGLFilter * filter)
{ {
GstGLFilterClass *filter_class = GST_GL_FILTER_GET_CLASS (filter); GstGLFilterClass *filter_class = GST_GL_FILTER_GET_CLASS (filter);
if (filter->upload) {
gst_object_unref (filter->upload);
filter->upload = NULL;
}
if (filter->download) {
gst_object_unref (filter->download);
filter->download = NULL;
}
if (filter->context) { if (filter->context) {
if (filter_class->onReset) if (filter_class->onReset)
filter_class->onReset (filter); filter_class->onReset (filter);