[196/906] fix a differencematte memory issue
This commit is contained in:
parent
5425839342
commit
e25a8f27db
@ -140,8 +140,14 @@ gst_gl_differencematte_reset_gl_resources (GstGLFilter *filter)
|
|||||||
glDeleteTextures (1, &differencematte->newbgtexture);
|
glDeleteTextures (1, &differencematte->newbgtexture);
|
||||||
for (i=0; i<4; i++) {
|
for (i=0; i<4; i++) {
|
||||||
g_object_unref (differencematte->shader[i]);
|
g_object_unref (differencematte->shader[i]);
|
||||||
|
differencematte->shader[i] = NULL;
|
||||||
glDeleteTextures (1, &differencematte->midtexture[i]);
|
glDeleteTextures (1, &differencematte->midtexture[i]);
|
||||||
}
|
}
|
||||||
|
differencematte->location = NULL;
|
||||||
|
differencematte->pixbuf = NULL;
|
||||||
|
differencematte->savedbgtexture = 0;
|
||||||
|
differencematte->newbgtexture = 0;
|
||||||
|
differencematte->bg_has_changed = FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
x
Reference in New Issue
Block a user