From 506e4fc793c40e6c233b55320a96643b0a290077 Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Fri, 21 Feb 2014 15:25:22 +1100 Subject: [PATCH] [885/906] filter: free our data plugs some memory leaks https://bugzilla.gnome.org/show_bug.cgi?id=724816 --- gst-libs/gst/gl/gstglfilter.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/gst-libs/gst/gl/gstglfilter.c b/gst-libs/gst/gl/gstglfilter.c index f91d0ec79f..fdcca09561 100644 --- a/gst-libs/gst/gl/gstglfilter.c +++ b/gst-libs/gst/gl/gstglfilter.c @@ -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);