[gnome-builder] session: set clear immediately



commit a556cda656fa844abb077533ed0d8fcb18f06342
Author: Christian Hergert <chergert redhat com>
Date:   Fri Jul 27 19:31:01 2018 -0700

    session: set clear immediately
    
    We need this since it creates a hashtable when initializing the dict.

 src/libide/session/ide-session.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/libide/session/ide-session.c b/src/libide/session/ide-session.c
index 58e0103bb..f37fcbfd1 100644
--- a/src/libide/session/ide-session.c
+++ b/src/libide/session/ide-session.c
@@ -447,9 +447,10 @@ ide_session_save_async (IdeSession          *self,
 
   s = g_slice_new0 (Save);
   s->addins = g_ptr_array_new_with_free_func (g_object_unref);
-  g_variant_dict_init (&s->dict, NULL);
   peas_extension_set_foreach (self->addins, collect_addins_cb, s->addins);
   s->active = s->addins->len;
+  g_variant_dict_init (&s->dict, NULL);
+  s->dict_needs_clear = TRUE;
   ide_task_set_task_data (task, s, save_free);
 
   if (s->active == 0)


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