Fix for DeviceScene::attributes_uchar4 not released properly

Reviewed by: dingto
Differential Revision: https://developer.blender.org/D620
This commit is contained in:
Tamito Kajiyama 2014-06-27 08:56:57 +02:00 committed by Thomas Dinges
parent bd777ffd3b
commit 0a0e4e0e69
Notes: blender-bot 2023-02-14 10:25:56 +01:00
Referenced by issue #40887, Can't build on OSX after some recent commits.
Referenced by issue #40887, Can't build on OSX after some recent commits.
Referenced by issue #40833, Crash when rendering with freestyle
1 changed files with 2 additions and 0 deletions

View File

@ -1131,6 +1131,7 @@ void MeshManager::device_free(Device *device, DeviceScene *dscene)
device->tex_free(dscene->attributes_map);
device->tex_free(dscene->attributes_float);
device->tex_free(dscene->attributes_float3);
device->tex_free(dscene->attributes_uchar4);
dscene->bvh_nodes.clear();
dscene->object_node.clear();
@ -1148,6 +1149,7 @@ void MeshManager::device_free(Device *device, DeviceScene *dscene)
dscene->attributes_map.clear();
dscene->attributes_float.clear();
dscene->attributes_float3.clear();
dscene->attributes_uchar4.clear();
#ifdef WITH_OSL
OSLGlobals *og = (OSLGlobals*)device->osl_memory();