mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 09:10:36 +00:00
[196/906] fix a differencematte memory issue
This commit is contained in:
parent
5425839342
commit
e25a8f27db
1 changed files with 6 additions and 0 deletions
|
@ -140,8 +140,14 @@ gst_gl_differencematte_reset_gl_resources (GstGLFilter *filter)
|
|||
glDeleteTextures (1, &differencematte->newbgtexture);
|
||||
for (i=0; i<4; i++) {
|
||||
g_object_unref (differencematte->shader[i]);
|
||||
differencematte->shader[i] = NULL;
|
||||
glDeleteTextures (1, &differencematte->midtexture[i]);
|
||||
}
|
||||
differencematte->location = NULL;
|
||||
differencematte->pixbuf = NULL;
|
||||
differencematte->savedbgtexture = 0;
|
||||
differencematte->newbgtexture = 0;
|
||||
differencematte->bg_has_changed = FALSE;
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue