glimagesink: free the vertex buffer when done
fixes a memory leak
This commit is contained in:
parent
1e9c30223e
commit
c6abd1632f
@ -1425,8 +1425,13 @@ gst_glimage_sink_cleanup_glthread (GstGLImageSink * gl_sink)
|
|||||||
gl_sink->vao = 0;
|
gl_sink->vao = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (gl_sink->vertex_buffer) {
|
||||||
|
gl->DeleteBuffers (1, &gl_sink->vertex_buffer);
|
||||||
|
gl_sink->vertex_buffer = 0;
|
||||||
|
}
|
||||||
|
|
||||||
if (gl_sink->vbo_indices) {
|
if (gl_sink->vbo_indices) {
|
||||||
gl->DeleteVertexArrays (1, &gl_sink->vbo_indices);
|
gl->DeleteBuffers (1, &gl_sink->vbo_indices);
|
||||||
gl_sink->vbo_indices = 0;
|
gl_sink->vbo_indices = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user