[Bf-blender-cvs] [472534d16e9] master: Fix memory leak in recent Cycles image texture refactor
Brecht Van Lommel
noreply at git.blender.org
Thu Mar 12 20:30:52 CET 2020
Commit: 472534d16e9ca342dd236416d39a64df6f6a5fe0
Author: Brecht Van Lommel
Date: Thu Mar 12 20:25:40 2020 +0100
Branches: master
https://developer.blender.org/rB472534d16e9ca342dd236416d39a64df6f6a5fe0
Fix memory leak in recent Cycles image texture refactor
===================================================================
M intern/cycles/device/device_memory.cpp
===================================================================
diff --git a/intern/cycles/device/device_memory.cpp b/intern/cycles/device/device_memory.cpp
index 36a0247bb3d..3c4f68cfc77 100644
--- a/intern/cycles/device/device_memory.cpp
+++ b/intern/cycles/device/device_memory.cpp
@@ -193,6 +193,8 @@ device_texture::device_texture(Device *device,
device_texture::~device_texture()
{
+ device_free();
+ host_free();
}
/* Host memory allocation. */
More information about the Bf-blender-cvs
mailing list