Commit b114b7e6 authored by Laurent Aimar's avatar Laurent Aimar
Browse files

Fixed a memory leak in opengl.

parent 063357c9
......@@ -386,6 +386,11 @@ void vout_display_opengl_Delete(vout_display_opengl_t *vgl)
for (int i = 0; i < VLCGL_TEXTURE_COUNT; i++)
glDeleteTextures(vgl->chroma->plane_count, vgl->texture[i]);
for (int i = 0; i < vgl->region_count; i++) {
if (vgl->region[i].texture)
glDeleteTextures(1, &vgl->region[i].texture);
if (vgl->program)
vgl->DeleteProgramsARB(1, &vgl->program);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment