[gegl] operations/common/wavelet-blur: Say NO to OOM safety



commit fdd9886f5e218bbeab97b6e1b7f235d2908ca28b
Author: Debarshi Ray <debarshir gnome org>
Date:   Fri Feb 10 09:52:26 2017 +0100

    operations/common/wavelet-blur: Say NO to OOM safety
    
    We generally don't check the return value of g_object_new, g_malloc,
    etc., and we shouldn't. See:
    http://0pointer.net/blog/projects/on-oom.html
    
    As a side-effect, this silences -Wmaybe-uninitialized.

 operations/common/wavelet-blur.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/operations/common/wavelet-blur.c b/operations/common/wavelet-blur.c
index 826bcb7..df2adad 100644
--- a/operations/common/wavelet-blur.c
+++ b/operations/common/wavelet-blur.c
@@ -66,8 +66,6 @@ wav_gen_convolve_matrix (gdouble   radius,
 
   matrix_length = wav_calc_convolve_matrix_length (radius);
   cmatrix = g_new (gdouble, matrix_length);
-  if (!cmatrix)
-    return 0;
 
   if (matrix_length == 1)
     {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]