[gegl] types: Add autocleanups



commit 7244e41fefc8cdf73ac032fff967ff359e344780
Author: Debarshi Ray <debarshir gnome org>
Date:   Mon Mar 20 10:39:20 2017 +0100

    types: Add autocleanups
    
    Bump required GLib version to 2.44.0.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=780083

 configure.ac      |    2 +-
 gegl/gegl-types.h |    4 ++++
 2 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index ef78310..56d39dc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -41,7 +41,7 @@ m4_define([babl_required_version], [0.1.24])
 m4_define([cairo_required_version], [0.0.0])
 m4_define([gdk_pixbuf_required_version], [2.32.0])
 m4_define([introspection_required_version], [1.32.0])
-m4_define([glib_required_version], [2.36.0])
+m4_define([glib_required_version], [2.44.0])
 m4_define([graphviz_required_version], [0.0.0])
 m4_define([jasper_required_version], [1.900.1])
 m4_define([lcms_required_version], [2.2])
diff --git a/gegl/gegl-types.h b/gegl/gegl-types.h
index e72fdc3..a7b5954 100644
--- a/gegl/gegl-types.h
+++ b/gegl/gegl-types.h
@@ -77,24 +77,28 @@ GType gegl_buffer_get_type  (void) G_GNUC_CONST;
 #define GEGL_TYPE_BUFFER    (gegl_buffer_get_type ())
 #define GEGL_BUFFER(obj)    (G_TYPE_CHECK_INSTANCE_CAST ((obj), GEGL_TYPE_BUFFER, GeglBuffer))
 #define GEGL_IS_BUFFER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GEGL_TYPE_BUFFER))
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (GeglBuffer, g_object_unref)
 
 typedef struct _GeglOperation  GeglOperation;
 GType gegl_operation_get_type  (void) G_GNUC_CONST;
 #define GEGL_TYPE_OPERATION    (gegl_operation_get_type ())
 #define GEGL_OPERATION(obj)    (G_TYPE_CHECK_INSTANCE_CAST ((obj), GEGL_TYPE_OPERATION, GeglOperation))
 #define GEGL_IS_OPERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GEGL_TYPE_OPERATION))
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (GeglOperation, g_object_unref)
 
 typedef struct _GeglNode  GeglNode;
 GType gegl_node_get_type  (void) G_GNUC_CONST;
 #define GEGL_TYPE_NODE    (gegl_node_get_type())
 #define GEGL_NODE(obj)    (G_TYPE_CHECK_INSTANCE_CAST ((obj), GEGL_TYPE_NODE, GeglNode))
 #define GEGL_IS_NODE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GEGL_TYPE_NODE))
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (GeglNode, g_object_unref)
 
 typedef struct _GeglProcessor  GeglProcessor;
 GType gegl_processor_get_type  (void) G_GNUC_CONST;
 #define GEGL_TYPE_PROCESSOR    (gegl_processor_get_type())
 #define GEGL_PROCESSOR(obj)    (G_TYPE_CHECK_INSTANCE_CAST ((obj), GEGL_TYPE_PROCESSOR, GeglProcessor))
 #define GEGL_IS_PROCESSOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GEGL_TYPE_PROCESSOR))
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (GeglProcessor, g_object_unref)
 
 typedef struct _GeglRandom  GeglRandom;
 GType gegl_random_get_type  (void) G_GNUC_CONST;


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