diff options
Diffstat (limited to 'source/blender/compositor/intern/COM_MemoryProxy.cpp')
-rw-r--r-- | source/blender/compositor/intern/COM_MemoryProxy.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/compositor/intern/COM_MemoryProxy.cpp b/source/blender/compositor/intern/COM_MemoryProxy.cpp index 0880af9833c..7ff4f4949f0 100644 --- a/source/blender/compositor/intern/COM_MemoryProxy.cpp +++ b/source/blender/compositor/intern/COM_MemoryProxy.cpp @@ -23,13 +23,15 @@ #include "COM_MemoryProxy.h" -MemoryProxy::MemoryProxy() { +MemoryProxy::MemoryProxy() +{ this->state = NULL; this->writeBufferOperation = NULL; this->executor = NULL; } -MemoryProxy::~MemoryProxy() { +MemoryProxy::~MemoryProxy() +{ if (this->state) { delete this->state; this->state = NULL; |