[gnome-builder/wip/gtk4-port] libide/code: delay commit hook cleanup until after addins



commit d191a378e513ee02fd2f3c31116eb7cc601b228e
Author: Christian Hergert <chergert redhat com>
Date:   Wed Apr 13 17:05:52 2022 -0700

    libide/code: delay commit hook cleanup until after addins
    
    So that they can unregister themsevles.

 src/libide/code/ide-buffer.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/libide/code/ide-buffer.c b/src/libide/code/ide-buffer.c
index f28e24441..98e17aedd 100644
--- a/src/libide/code/ide-buffer.c
+++ b/src/libide/code/ide-buffer.c
@@ -512,9 +512,8 @@ ide_buffer_dispose (GObject *object)
   g_clear_handle_id (&self->settling_source, g_source_remove);
   g_clear_handle_id (&self->release_in_idle, g_source_remove);
 
-  g_clear_pointer (&self->commit_funcs, g_array_unref);
-
   ide_clear_and_destroy_object (&self->addins);
+
   ide_clear_and_destroy_object (&self->rename_provider);
   ide_clear_and_destroy_object (&self->symbol_resolvers);
   ide_clear_and_destroy_object (&self->formatter);
@@ -523,6 +522,8 @@ ide_buffer_dispose (GObject *object)
   ide_clear_and_destroy_object (&self->change_monitor);
   ide_clear_and_destroy_object (&self->file_settings);
 
+  g_clear_pointer (&self->commit_funcs, g_array_unref);
+
   g_clear_object (&self->diagnostics);
   g_clear_object (&self->buffer_manager);
 


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