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
diff options
context:
space:
mode:
authorBrecht Van Lommel <brecht@blender.org>2020-03-12 22:25:40 +0300
committerBrecht Van Lommel <brecht@blender.org>2020-03-12 22:30:49 +0300
commit472534d16e9ca342dd236416d39a64df6f6a5fe0 (patch)
tree37586d694571d5f204a0237b46c28ec6e9dbd931 /intern/cycles/device/device_memory.cpp
parent2050baa139006760fc43ea94cbfb1290698575f5 (diff)
Fix memory leak in recent Cycles image texture refactor
Diffstat (limited to 'intern/cycles/device/device_memory.cpp')
-rw-r--r--intern/cycles/device/device_memory.cpp2
1 files changed, 2 insertions, 0 deletions
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. */