GPUTexture: Fix memleak in orphaned texture management.
This commit is contained in:
parent
e657a4af13
commit
06dd89b0ca
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue