[Bf-blender-cvs] [06dd89b0cac] blender2.8: GPUTexture: Fix memleak in orphaned texture management.

Clément Foucault noreply at git.blender.org
Sun Jun 3 16:35:39 CEST 2018


Commit: 06dd89b0cac3169c37998e9cac6d101a405216ea
Author: Clément Foucault
Date:   Sun Jun 3 16:25:37 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB06dd89b0cac3169c37998e9cac6d101a405216ea

GPUTexture: Fix memleak in orphaned texture management.

===================================================================

M	source/blender/gpu/intern/gpu_texture.c

===================================================================

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);
 }



More information about the Bf-blender-cvs mailing list