ui/shader: free associated programs

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
Marc-André Lureau 2022-02-17 11:37:47 +04:00
parent 8fe496adac
commit 532042d573

View File

@ -172,5 +172,8 @@ void qemu_gl_fini_shader(QemuGLShader *gls)
if (!gls) {
return;
}
glDeleteProgram(gls->texture_blit_prog);
glDeleteProgram(gls->texture_blit_flip_prog);
glDeleteProgram(gls->texture_blit_vao);
g_free(gls);
}