diff options
author | Lukas Tönne <lukas.toenne@gmail.com> | 2014-06-01 18:30:58 +0400 |
---|---|---|
committer | Lukas Tönne <lukas.toenne@gmail.com> | 2014-06-01 18:35:26 +0400 |
commit | 27630f41a7ac9bd0677d0df5a301a86785397a89 (patch) | |
tree | 1e402bd62f297e500b88eb9516d2b9f414e793b8 /source/blender/compositor/operations/COM_GaussianAlphaYBlurOperation.cpp | |
parent | 7674ebf3407b4ac8dcf1ba88a9a240b619c13ae5 (diff) |
Fix T40459: Gauss table can be NULL when ending the blur node operation,
which must not be passed to MEM_freeN.
Diffstat (limited to 'source/blender/compositor/operations/COM_GaussianAlphaYBlurOperation.cpp')
-rw-r--r-- | source/blender/compositor/operations/COM_GaussianAlphaYBlurOperation.cpp | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/source/blender/compositor/operations/COM_GaussianAlphaYBlurOperation.cpp b/source/blender/compositor/operations/COM_GaussianAlphaYBlurOperation.cpp index ae1f309c54f..ab97c8b0d13 100644 --- a/source/blender/compositor/operations/COM_GaussianAlphaYBlurOperation.cpp +++ b/source/blender/compositor/operations/COM_GaussianAlphaYBlurOperation.cpp @@ -146,10 +146,16 @@ void GaussianAlphaYBlurOperation::executePixel(float output[4], int x, int y, vo void GaussianAlphaYBlurOperation::deinitExecution() { BlurBaseOperation::deinitExecution(); - MEM_freeN(this->m_gausstab); - this->m_gausstab = NULL; - MEM_freeN(this->m_distbuf_inv); - this->m_distbuf_inv = NULL; + + if (this->m_gausstab) { + MEM_freeN(this->m_gausstab); + this->m_gausstab = NULL; + } + + if (this->m_distbuf_inv) { + MEM_freeN(this->m_distbuf_inv); + this->m_distbuf_inv = NULL; + } deinitMutex(); } |