diff options
Diffstat (limited to 'source/blender/compositor/operations/COM_BlurBaseOperation.cpp')
-rw-r--r-- | source/blender/compositor/operations/COM_BlurBaseOperation.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/compositor/operations/COM_BlurBaseOperation.cpp b/source/blender/compositor/operations/COM_BlurBaseOperation.cpp index 98aeba41ecb..c527807f839 100644 --- a/source/blender/compositor/operations/COM_BlurBaseOperation.cpp +++ b/source/blender/compositor/operations/COM_BlurBaseOperation.cpp @@ -22,6 +22,7 @@ #include "COM_BlurBaseOperation.h" #include "BLI_math.h" +#include "MEM_guardedalloc.h" extern "C" { #include "RE_pipeline.h" @@ -74,7 +75,7 @@ float *BlurBaseOperation::make_gausstab(int rad) n = 2 * rad + 1; - gausstab = new float[n]; + gausstab = (float *)MEM_mallocN(sizeof(float) * n, __func__); sum = 0.0f; for (i = -rad; i <= rad; i++) { @@ -99,7 +100,7 @@ float *BlurBaseOperation::make_dist_fac_inverse(int rad, int falloff) n = 2 * rad + 1; - dist_fac_invert = new float[n]; + dist_fac_invert = (float *)MEM_mallocN(sizeof(float) * n, __func__); for (i = -rad; i <= rad; i++) { val = 1.0f - fabsf(((float)i / (float)rad)); |