diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2018-06-03 17:25:37 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2018-06-03 17:45:03 +0300 |
commit | 06dd89b0cac3169c37998e9cac6d101a405216ea (patch) | |
tree | 8d3dbf9a1ab910b3b3f1de214f776772d4b12654 /source | |
parent | e657a4af13a98b022cb695a9cf00ff02dcc3b524 (diff) |
GPUTexture: Fix memleak in orphaned texture management.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/gpu/intern/gpu_texture.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/gpu/intern/gpu_texture.c b/source/blender/gpu/intern/gpu_texture.c index d916b75417f..4da9acdee4f 100644 --- a/source/blender/gpu/intern/gpu_texture.c +++ b/source/blender/gpu/intern/gpu_texture.c @@ -1135,6 +1135,7 @@ void GPU_texture_delete_orphans(void) LinkData *link; while((link = BLI_pophead(&g_orphaned_tex))) { gpu_texture_delete((GPUTexture *)link->data); + MEM_freeN(link); } BLI_mutex_unlock(&g_orphan_lock); } |