GPUTexture: Fix memleak in orphaned texture management.
authorClément Foucault <foucault.clem@gmail.com>
Sun, 3 Jun 2018 14:25:37 +0000 (16:25 +0200)
committerClément Foucault <foucault.clem@gmail.com>
Sun, 3 Jun 2018 14:45:03 +0000 (16:45 +0200)
source/blender/gpu/intern/gpu_texture.c

index d916b75..4da9acd 100644 (file)
@@ -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);
 }