From 0948be642e6ddb264d9d558db32139a6a84008fb Mon Sep 17 00:00:00 2001 From: mbkma Date: Thu, 12 Mar 2026 00:08:58 +0100 Subject: fix memleaks --- mate-panel/panel-run-dialog.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/mate-panel/panel-run-dialog.c b/mate-panel/panel-run-dialog.c index 49c4e761..a98afc46 100644 --- a/mate-panel/panel-run-dialog.c +++ b/mate-panel/panel-run-dialog.c @@ -493,6 +493,8 @@ panel_run_dialog_execute (PanelRunDialog *dialog) "cannot_convert_command_from_utf8", TRUE, primary, error->message); g_free (primary); + g_free (command); + g_free (disk); g_error_free (error); return; @@ -2120,8 +2122,11 @@ panel_run_dialog_present (GdkScreen *screen, GtkBuilder *gui; accelerator_keys_to_tree_iter_map = g_hash_table_new_full (g_direct_hash, g_direct_equal, NULL, NULL); - if (panel_lockdown_get_disable_command_line ()) + if (panel_lockdown_get_disable_command_line ()) { + g_hash_table_destroy (accelerator_keys_to_tree_iter_map); + accelerator_keys_to_tree_iter_map = NULL; return; + } if (static_dialog) { gtk_window_set_screen (GTK_WINDOW (static_dialog->run_dialog), screen); -- cgit v1.2.1