[gegl] random: Add autocleanups



commit 46a07f7f538c65253b22b3dd0eb3e19b2e8530d9
Author: Debarshi Ray <debarshir gnome org>
Date:   Mon Mar 20 10:59:06 2017 +0100

    random: Add autocleanups
    
    https://bugzilla.gnome.org/show_bug.cgi?id=780083

 gegl/gegl-random.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gegl/gegl-random.h b/gegl/gegl-random.h
index 4b9b307..72c2e69 100644
--- a/gegl/gegl-random.h
+++ b/gegl/gegl-random.h
@@ -157,6 +157,8 @@ gfloat gegl_random_float (const GeglRandom *rand,
                           gint              z,
                           gint              n);
 
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (GeglRandom, gegl_random_free)
+
 G_END_DECLS
 
 #endif /* __GEGL_RANDOM_H__ */


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