From 619832f729fbe696575fe1c42a3101eab7691427 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Tue, 17 Feb 2015 13:36:20 -0500 Subject: [PATCH] autocleanups: Use g_option_context_unref() This fixes a use of a deprecated API. --- glib/glib-autocleanups.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glib/glib-autocleanups.h b/glib/glib-autocleanups.h index a3c059a0d..df654e582 100644 --- a/glib/glib-autocleanups.h +++ b/glib/glib-autocleanups.h @@ -41,7 +41,7 @@ G_DEFINE_AUTOPTR_CLEANUP_FUNC(GMarkupParseContext, g_markup_parse_context_unref) G_DEFINE_AUTOPTR_CLEANUP_FUNC(gchar, g_free) G_DEFINE_AUTOPTR_CLEANUP_FUNC(GNode, g_node_destroy) G_DEFINE_AUTOPTR_CLEANUP_FUNC(GOptionContext, g_option_context_free) -G_DEFINE_AUTOPTR_CLEANUP_FUNC(GOptionGroup, g_option_group_free) +G_DEFINE_AUTOPTR_CLEANUP_FUNC(GOptionGroup, g_option_group_unref) G_DEFINE_AUTOPTR_CLEANUP_FUNC(GPatternSpec, g_pattern_spec_free) G_DEFINE_AUTOPTR_CLEANUP_FUNC(GQueue, g_queue_free) G_DEFINE_AUTO_CLEANUP_CLEAR_FUNC(GQueue, g_queue_clear)