mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +00:00
glimagesink: free the vertex buffer when done
fixes a memory leak
This commit is contained in:
parent
5d8841c8e7
commit
0e2fe3c2e9
1 changed files with 6 additions and 1 deletions
|
@ -1425,8 +1425,13 @@ gst_glimage_sink_cleanup_glthread (GstGLImageSink * gl_sink)
|
|||
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) {
|
||||
gl->DeleteVertexArrays (1, &gl_sink->vbo_indices);
|
||||
gl->DeleteBuffers (1, &gl_sink->vbo_indices);
|
||||
gl_sink->vbo_indices = 0;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue