diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2017-09-13 16:42:27 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2017-09-13 16:42:48 +0300 |
commit | 2b2277ecbc9944d8044614530ebaaa396f994b78 (patch) | |
tree | e41554da4a121342f63125b3a342d5daa9fbdabe /source | |
parent | 37d8d4787cfa3d04b09f935c5600f1a3ea7b74e7 (diff) |
DRW: Fix memleak in release mode.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/draw/intern/draw_manager.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/draw/intern/draw_manager.c b/source/blender/draw/intern/draw_manager.c index a7025c0dd0e..efbc53dc63e 100644 --- a/source/blender/draw/intern/draw_manager.c +++ b/source/blender/draw/intern/draw_manager.c @@ -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 |