Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/intern
diff options
context:
space:
mode:
authorPatrick Mours <pmours@nvidia.com>2019-09-30 13:12:34 +0300
committerPatrick Mours <pmours@nvidia.com>2019-09-30 15:05:40 +0300
commit91f6aa6a5759b5aa141bc92403ff3c7c21966dbf (patch)
treede747a45fcf52f5c328044b6c5176406ac31e1a9 /intern
parent04ef62177fb6483dd1424486b8d7ddf994f62204 (diff)
Fix memory leak after using OptiX in Cycles
The "optix_devices" array was not freed on exit, which caused a memory leak (see T69801). Reviewed By: brecht Differential Revision: https://developer.blender.org/D5944
Diffstat (limited to 'intern')
-rw-r--r--intern/cycles/device/device.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/intern/cycles/device/device.cpp b/intern/cycles/device/device.cpp
index fe8a814cd14..76670351734 100644
--- a/intern/cycles/device/device.cpp
+++ b/intern/cycles/device/device.cpp
@@ -643,6 +643,7 @@ void Device::free_memory()
{
devices_initialized_mask = 0;
cuda_devices.free_memory();
+ optix_devices.free_memory();
opencl_devices.free_memory();
cpu_devices.free_memory();
network_devices.free_memory();