Fix leak w/ ocio glsl draw

This commit is contained in:
Campbell Barton 2017-09-08 04:20:58 +10:00
parent df58d6bf76
commit a2989b89c3

@ -376,6 +376,9 @@ bool OCIOImpl::setupGLSLDraw(OCIO_GLSLDrawState **state_r, OCIO_ConstProcessorRc
}
if (state->program) {
if (state->shader_interface) {
GWN_shaderinterface_discard(state->shader_interface);
}
state->shader_interface = GWN_shaderinterface_create(state->program);
}