[glib] gobject: Add missing autocleanup for GInitiallyUnowned



commit 5e994b1e9ba0ddbd27773825cb8bfe30ee2e69d2
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Fri Feb 20 19:54:07 2015 +0000

    gobject: Add missing autocleanup for GInitiallyUnowned
    
    We are missing the auto cleanup function for this type, which means
    G_DECLARE_* macros won't work with classes inheriting from
    GInitiallyUnowned.

 gobject/gobject-autocleanups.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gobject/gobject-autocleanups.h b/gobject/gobject-autocleanups.h
index a871141..797f315 100644
--- a/gobject/gobject-autocleanups.h
+++ b/gobject/gobject-autocleanups.h
@@ -23,4 +23,5 @@
 
 G_DEFINE_AUTO_CLEANUP_FREE_FUNC(GStrv, g_strfreev, NULL)
 G_DEFINE_AUTOPTR_CLEANUP_FUNC(GObject, g_object_unref)
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GInitiallyUnowned, g_object_unref)
 G_DEFINE_AUTO_CLEANUP_CLEAR_FUNC(GValue, g_value_unset)


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