[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 committed by Tim-Philipp Müller
parent f292e785ce
commit c2e1e6a2d1

View file

@ -225,6 +225,16 @@ gst_gl_filter_reset (GstGLFilter * 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_class->onReset)
filter_class->onReset (filter);