From a97df9026755dfdb8d5d0e4a2b721f73d74f5afb Mon Sep 17 00:00:00 2001 From: Ivan Dmitrievich Yartsev Date: Thu, 19 Feb 2026 16:07:12 +0600 Subject: [PATCH] Test log loading memory fixes; Test interface language changing environment setting error fix --- source/ubinstall-gtk-log.c | 3 +++ source/ubinstall-gtk-ui-lang.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/source/ubinstall-gtk-log.c b/source/ubinstall-gtk-log.c index 798880d..09e88e3 100644 --- a/source/ubinstall-gtk-log.c +++ b/source/ubinstall-gtk-log.c @@ -106,6 +106,7 @@ void yon_installation_progress_update(GFileMonitor *,GFile *,GFile *,GFileMonito gtk_progress_bar_set_fraction(GTK_PROGRESS_BAR(widgets->InstallationProgress), fraction / 100); gtk_progress_bar_set_fraction(GTK_PROGRESS_BAR(widgets->PackageInstallationProgress), 0); gtk_label_set_text(GTK_LABEL(widgets->PackageInstallationLabel), ""); + if (!yon_char_is_empty(current_copy)) free(current_copy); } else { gtk_widget_show(gtk_widget_get_parent(widgets->PackageInstallationProgress)); @@ -114,7 +115,9 @@ void yon_installation_progress_update(GFileMonitor *,GFile *,GFile *,GFileMonito double fraction = atof(parsed[2]) / 100; gtk_progress_bar_set_fraction(GTK_PROGRESS_BAR(widgets->PackageInstallationProgress), fraction); gtk_label_set_text(GTK_LABEL(widgets->PackageInstallationLabel), yon_char_parsed_to_string(parsed, size, " ")); + yon_char_parsed_free(parsed,size); } + if (!yon_char_is_empty(current_copy)) free(current_copy); } } diff --git a/source/ubinstall-gtk-ui-lang.c b/source/ubinstall-gtk-ui-lang.c index 9ae5ced..210e03a 100644 --- a/source/ubinstall-gtk-ui-lang.c +++ b/source/ubinstall-gtk-ui-lang.c @@ -89,7 +89,7 @@ void yon_startup_language_init(){ } void yon_main_window_update_locale(main_window *widgets){ - char *locale = config(installer_locale_parameter); + volatile char *locale = config(installer_locale_parameter); if (yon_char_is_empty(locale)){ char *sys_locale = config(lang_parameter);