From aaca7e94a4805fe131d4539839ba27b18f7d7306 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20Bonithon?= Date: Tue, 9 Apr 2024 22:53:53 +0200 Subject: [PATCH] Fix xfconf memory management --- src/main.c | 2 +- src/process-window.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.c b/src/main.c index 1fce236..c484ef5 100644 --- a/src/main.c +++ b/src/main.c @@ -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 (); diff --git a/src/process-window.c b/src/process-window.c index 053f704..b468316 100644 --- a/src/process-window.c +++ b/src/process-window.c @@ -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);