mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 04:31:06 +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
d57403ab98
commit
506e4fc793
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