[gnome-builder] src: transfer ownership of gir option group
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] src: transfer ownership of gir option group
- Date: Thu, 24 Jan 2019 02:43:47 +0000 (UTC)
commit c2501f4441b2e8eee353e2e01444b471327233a8
Author: Christian Hergert <chergert redhat com>
Date: Wed Jan 23 18:43:28 2019 -0800
src: transfer ownership of gir option group
src/main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/main.c b/src/main.c
index ade1bf4c4..658ac55e1 100644
--- a/src/main.c
+++ b/src/main.c
@@ -72,7 +72,7 @@ early_params_check (gint *argc,
g_option_context_set_ignore_unknown_options (context, TRUE);
g_option_context_set_help_enabled (context, FALSE);
g_option_context_add_main_entries (context, entries, NULL);
- g_option_context_add_group (context, gir_group);
+ g_option_context_add_group (context, g_steal_pointer (&gir_group));
g_option_context_parse (context, argc, argv, NULL);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]