DRW: Fix memleak in release mode.

This commit is contained in:
Clément Foucault
2017-09-13 15:42:27 +02:00
parent 37d8d4787c
commit 2b2277ecbc

View File

@@ -3667,6 +3667,15 @@ void DRW_engines_free(void)
if (globals_ramp)
GPU_texture_free(globals_ramp);
if (DST.bound_texs) {
MEM_freeN(DST.bound_texs);
DST.bound_texs = NULL;
}
if (DST.bound_ubos) {
MEM_freeN(DST.bound_ubos);
DST.bound_ubos = NULL;
}
#ifdef WITH_CLAY_ENGINE
BLI_remlink(&R_engines, &DRW_engine_viewport_clay_type);
#endif