Fix xfconf memory management
This commit is contained in:
@@ -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 ();
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user