[Bf-blender-cvs] [b1cd8d3] cycles_kernel_split: Fix mem leak : Release per_sample_output_buffers mem
varunsundar08
noreply at git.blender.org
Thu Apr 30 23:25:35 CEST 2015
Commit: b1cd8d3733b3c162a7892bc0e0bd9d29b55d95f1
Author: varunsundar08
Date: Fri May 1 01:06:29 2015 +0530
Branches: cycles_kernel_split
https://developer.blender.org/rBb1cd8d3733b3c162a7892bc0e0bd9d29b55d95f1
Fix mem leak : Release per_sample_output_buffers mem
===================================================================
M intern/cycles/device/device_opencl.cpp
===================================================================
diff --git a/intern/cycles/device/device_opencl.cpp b/intern/cycles/device/device_opencl.cpp
index 146393c..5b6ec7c 100644
--- a/intern/cycles/device/device_opencl.cpp
+++ b/intern/cycles/device/device_opencl.cpp
@@ -2500,6 +2500,9 @@ public:
#endif
+ if(per_sample_output_buffers != NULL)
+ clReleaseMemObject(per_sample_output_buffers);
+
if(hostRayStateArray != NULL)
free(hostRayStateArray);
More information about the Bf-blender-cvs
mailing list