GPUTexture: Fix memleak in orphaned texture management.

This commit is contained in:
Clément Foucault 2018-06-03 16:25:37 +02:00
parent e657a4af13
commit 06dd89b0ca
1 changed files with 1 additions and 0 deletions

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