mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-25 03:01:03 +00:00
[885/906] filter: free our data
plugs some memory leaks https://bugzilla.gnome.org/show_bug.cgi?id=724816
This commit is contained in:
parent
f292e785ce
commit
c2e1e6a2d1
1 changed files with 10 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue