diff options
Diffstat (limited to 'source/blender/freestyle/intern/image')
-rw-r--r-- | source/blender/freestyle/intern/image/GaussianFilter.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/source/blender/freestyle/intern/image/GaussianFilter.cpp b/source/blender/freestyle/intern/image/GaussianFilter.cpp index 87e2caee8a9..ca476bee0d3 100644 --- a/source/blender/freestyle/intern/image/GaussianFilter.cpp +++ b/source/blender/freestyle/intern/image/GaussianFilter.cpp @@ -55,9 +55,7 @@ GaussianFilter &GaussianFilter::operator=(const GaussianFilter &iBrother) GaussianFilter::~GaussianFilter() { - if (0 != _mask) { - delete[] _mask; - } + delete[] _mask; } int GaussianFilter::computeMaskSize(float sigma) @@ -78,9 +76,7 @@ void GaussianFilter::setSigma(float sigma) void GaussianFilter::computeMask() { - if (0 != _mask) { - delete[] _mask; - } + delete[] _mask; _maskSize = computeMaskSize(_sigma); _storedMaskSize = (_maskSize + 1) >> 1; |