[glib] gobject: add g_autoptr support for GTypeModule



commit ad669500a60b87847ff16dd00c824748d6efb5af
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Thu Jul 21 16:11:53 2016 +0300

    gobject: add g_autoptr support for GTypeModule
    
    https://bugzilla.gnome.org/show_bug.cgi?id=769033

 gobject/gtypemodule.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gobject/gtypemodule.h b/gobject/gtypemodule.h
index 3ef0e84..27be251 100644
--- a/gobject/gtypemodule.h
+++ b/gobject/gtypemodule.h
@@ -36,6 +36,8 @@ typedef struct _GTypeModuleClass GTypeModuleClass;
 #define G_IS_TYPE_MODULE_CLASS(class)   (G_TYPE_CHECK_CLASS_TYPE ((class), G_TYPE_TYPE_MODULE))
 #define G_TYPE_MODULE_GET_CLASS(module) (G_TYPE_INSTANCE_GET_CLASS ((module), G_TYPE_TYPE_MODULE, 
GTypeModuleClass))
 
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GTypeModule, g_object_unref)
+
 /**
  * GTypeModule:
  * @name: the name of the module


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