From 5e994b1e9ba0ddbd27773825cb8bfe30ee2e69d2 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Fri, 20 Feb 2015 19:54:07 +0000 Subject: [PATCH] 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 file changed, 1 insertion(+) 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) -- 2.7.4