[gnome-builder] libide/gui: ensure shortcut models are released on dispose



commit 6ef58852a4c348fc090c38ee3ebacd84b67d9924
Author: Christian Hergert <chergert redhat com>
Date:   Mon Aug 29 16:55:51 2022 -0700

    libide/gui: ensure shortcut models are released on dispose

 src/libide/gui/ide-workspace.c | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/src/libide/gui/ide-workspace.c b/src/libide/gui/ide-workspace.c
index b8053ef82..911d46e9e 100644
--- a/src/libide/gui/ide-workspace.c
+++ b/src/libide/gui/ide-workspace.c
@@ -560,6 +560,9 @@ ide_workspace_dispose (GObject *object)
   /* Unload addins immediately */
   ide_clear_and_destroy_object (&priv->addins);
 
+  /* Unload shortcut models */
+  g_clear_object (&priv->shortcut_model_bubble);
+  g_clear_object (&priv->shortcut_model_capture);
   /* Remove the workspace from the workbench MRU/etc */
   group = gtk_window_get_group (GTK_WINDOW (self));
   if (IDE_IS_WORKBENCH (group))


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