[gegl] utils: Add the G_GNUC_MALLOC attribute to applicable functions.



commit c521f1eaa49cf165419372823b2a7270ac9d968b
Author: Michael Henning <drawoc darkrefraction com>
Date:   Mon Aug 12 15:12:54 2013 -0400

    utils: Add the G_GNUC_MALLOC attribute to applicable functions.

 gegl/gegl-utils.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gegl/gegl-utils.h b/gegl/gegl-utils.h
index 211c6c1..d314c6b 100644
--- a/gegl/gegl-utils.h
+++ b/gegl/gegl-utils.h
@@ -210,7 +210,7 @@ void     gegl_rectangle_dump              (const GeglRectangle *rectangle);
  *
  * Returns a pointer to the allocated memory.
  */
-gpointer gegl_malloc                  (gsize    n_bytes);
+gpointer gegl_malloc                  (gsize    n_bytes) G_GNUC_MALLOC;
 
 /**
  * gegl_free: (skip)
@@ -227,7 +227,7 @@ void     gegl_free                    (gpointer mem);
  *
  * allocated 0'd memory.
  */
-gpointer gegl_calloc (gsize size, int n_memb);
+gpointer gegl_calloc (gsize size, int n_memb) G_GNUC_MALLOC;
 
 #define GEGL_FLOAT_EPSILON            (1e-5)
 #define GEGL_FLOAT_IS_ZERO(value)     (_gegl_float_epsilon_zero ((value)))


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