Fix xfconf memory management

This commit is contained in:
Gaël Bonithon
2024-04-09 22:53:53 +02:00
parent c3bf4c7c3e
commit aaca7e94a4
2 changed files with 2 additions and 2 deletions

View File

@@ -261,7 +261,7 @@ int main (int argc, char *argv[])
exit (EXIT_FAILURE);
}
channel = xfconf_channel_new (CHANNEL);
channel = xfconf_channel_get (CHANNEL);
settings = xtm_settings_get_default ();
xtm_settings_bind_xfconf (settings, channel);
show_hide_status_icon ();

View File

@@ -289,7 +289,7 @@ xtm_process_window_init (XtmProcessWindow *window)
GtkWidget *button;
window->settings = xtm_settings_get_default ();
window->channel = xfconf_channel_new (CHANNEL);
window->channel = xfconf_channel_get (CHANNEL);
window->builder = gtk_builder_new ();
gtk_builder_add_from_string (window->builder, process_window_ui, process_window_ui_length, NULL);