diff options
Diffstat (limited to 'intern/cycles/device/opencl/memory_manager.h')
-rw-r--r-- | intern/cycles/device/opencl/memory_manager.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/intern/cycles/device/opencl/memory_manager.h b/intern/cycles/device/opencl/memory_manager.h index 3714405d026..7ef74a79834 100644 --- a/intern/cycles/device/opencl/memory_manager.h +++ b/intern/cycles/device/opencl/memory_manager.h @@ -60,11 +60,13 @@ private: vector<Allocation*> allocations; size_t size; /* Size of all allocations. */ - DeviceBuffer() : buffer(new device_memory), size(0) + DeviceBuffer() + : buffer(NULL), size(0) { } - ~DeviceBuffer() { + ~DeviceBuffer() + { delete buffer; buffer = NULL; } |