[gnome-builder] src: use gtk_source_finalize() to cleanup state



commit 572c87502f7f4687176fd1563a51ae893e40d710
Author: Christian Hergert <chergert redhat com>
Date:   Wed Apr 24 15:38:01 2019 -0700

    src: use gtk_source_finalize() to cleanup state

 src/main.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/main.c b/src/main.c
index e053082ca..ffc833835 100644
--- a/src/main.c
+++ b/src/main.c
@@ -165,6 +165,8 @@ main (gint   argc,
              gtk_get_minor_version (),
              gtk_get_micro_version ());
 
+  gtk_source_init ();
+
   /* Initialize thread pools */
   _ide_thread_pool_init (FALSE);
 
@@ -184,8 +186,7 @@ main (gint   argc,
   ide_log_shutdown ();
 
   /* Cleanup GtkSourceView singletons to improve valgrind output */
-  g_object_unref (gtk_source_style_scheme_manager_get_default ());
-  g_object_unref (gtk_source_language_manager_get_default ());
+  gtk_source_finalize ();
 
   return ret;
 }


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