From 73b490cec7c16b2136d162988a1f5d5d3997026f Mon Sep 17 00:00:00 2001 From: Ivan Yarcev Date: Fri, 26 Jul 2024 10:11:06 +0600 Subject: [PATCH 1/2] Fixed crash at zone choosing --- source/ubinstall-gtk.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/source/ubinstall-gtk.c b/source/ubinstall-gtk.c index 9a5f6b8..ddb3cd6 100644 --- a/source/ubinstall-gtk.c +++ b/source/ubinstall-gtk.c @@ -1148,8 +1148,6 @@ void on_page_navigation_clicked(GtkWidget *self, main_window *widgets){ char *region = (char*)gtk_combo_box_get_active_id(GTK_COMBO_BOX(widgets->RegionCombo)); char *zone = (char*)gtk_combo_box_get_active_id(GTK_COMBO_BOX(widgets->ZoneCombo)); yon_config_register(zone_parameter,zone_parameter_command,yon_char_unite(region,"/",zone,NULL)); - free(zone); - free(region); } else { yon_config_remove_by_key(zone_parameter); } From 1ee62f20d0ade28f4752d2b95d9ccac7d6e103af Mon Sep 17 00:00:00 2001 From: Ivan Yarcev Date: Fri, 26 Jul 2024 10:39:10 +0600 Subject: [PATCH 2/2] fixed crash --- source/ubinstall-gtk.c | 1 - 1 file changed, 1 deletion(-) diff --git a/source/ubinstall-gtk.c b/source/ubinstall-gtk.c index ddb3cd6..5eb446a 100644 --- a/source/ubinstall-gtk.c +++ b/source/ubinstall-gtk.c @@ -1142,7 +1142,6 @@ void on_page_navigation_clicked(GtkWidget *self, main_window *widgets){ } else { char *language = (char*)gtk_combo_box_get_active_id(GTK_COMBO_BOX(widgets->LanguagesCombo)); yon_config_register(lang_parameter,lang_parameter_command,language); - free(language); } if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widgets->RegionSensitiveCheck))){ char *region = (char*)gtk_combo_box_get_active_id(GTK_COMBO_BOX(widgets->RegionCombo));