[glib] gapplication: stop using deprecated API



commit 6ef0664017722a5f06739a03973c368c69c9746e
Author: Ryan Lortie <desrt desrt ca>
Date:   Wed Feb 18 16:45:59 2015 -0500

    gapplication: stop using deprecated API
    
    More fallout from the GOptionGroup binding patch.

 gio/gapplication.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gio/gapplication.c b/gio/gapplication.c
index e51f0cb..c7e7a3c 100644
--- a/gio/gapplication.c
+++ b/gio/gapplication.c
@@ -1213,9 +1213,9 @@ g_application_finalize (GObject *object)
 {
   GApplication *application = G_APPLICATION (object);
 
-  g_slist_free_full (application->priv->option_groups, (GDestroyNotify) g_option_group_free);
+  g_slist_free_full (application->priv->option_groups, (GDestroyNotify) g_option_group_unref);
   if (application->priv->main_options)
-    g_option_group_free (application->priv->main_options);
+    g_option_group_unref (application->priv->main_options);
   if (application->priv->packed_options)
     {
       g_slist_free_full (application->priv->option_strings, g_free);


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