diff options
author | Brecht Van Lommel <brecht@blender.org> | 2020-03-12 22:25:40 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2020-03-12 22:30:49 +0300 |
commit | 472534d16e9ca342dd236416d39a64df6f6a5fe0 (patch) | |
tree | 37586d694571d5f204a0237b46c28ec6e9dbd931 /intern/cycles/device | |
parent | 2050baa139006760fc43ea94cbfb1290698575f5 (diff) |
Fix memory leak in recent Cycles image texture refactor
Diffstat (limited to 'intern/cycles/device')
-rw-r--r-- | intern/cycles/device/device_memory.cpp | 2 |
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. */ |