Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2018-06-03 17:25:37 +0300
committerClément Foucault <foucault.clem@gmail.com>2018-06-03 17:45:03 +0300
commit06dd89b0cac3169c37998e9cac6d101a405216ea (patch)
tree8d3dbf9a1ab910b3b3f1de214f776772d4b12654 /source/blender/gpu/intern/gpu_texture.c
parente657a4af13a98b022cb695a9cf00ff02dcc3b524 (diff)
GPUTexture: Fix memleak in orphaned texture management.
Diffstat (limited to 'source/blender/gpu/intern/gpu_texture.c')
-rw-r--r--source/blender/gpu/intern/gpu_texture.c1
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);
}