diff options
author | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2014-06-27 10:56:57 +0400 |
---|---|---|
committer | Thomas Dinges <blender@dingto.org> | 2014-06-27 10:56:57 +0400 |
commit | 0a0e4e0e698eb496c4fb18c79b532104581ce0af (patch) | |
tree | ff53d7eee78f7c0dd12c406aeef7a9461d4721fa | |
parent | bd777ffd3b38d6a940164e55bb7493bfbad39837 (diff) |
Fix for DeviceScene::attributes_uchar4 not released properly
Reviewed by: dingto
Differential Revision: https://developer.blender.org/D620
-rw-r--r-- | intern/cycles/render/mesh.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/intern/cycles/render/mesh.cpp b/intern/cycles/render/mesh.cpp index 808db4fe5b2..3a95f5c106b 100644 --- a/intern/cycles/render/mesh.cpp +++ b/intern/cycles/render/mesh.cpp @@ -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(); |