From bd5fecb1cf28e30ef1d4a72de6577db75f7702d4 Mon Sep 17 00:00:00 2001 From: Ivan Dmitrievich Yartsev Date: Thu, 15 Jan 2026 14:20:12 +0000 Subject: [PATCH] Fixed crash --- source/ubinstall-gtk-page-switch.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/ubinstall-gtk-page-switch.c b/source/ubinstall-gtk-page-switch.c index f6cc33d..fb8f0ba 100644 --- a/source/ubinstall-gtk-page-switch.c +++ b/source/ubinstall-gtk-page-switch.c @@ -493,7 +493,9 @@ void on_page_cancel_clicked(GtkWidget *, main_window *widgets){ data->action_text=INTERRUPT_TEXT_LABEL; data->title=WARNING_TITLE_LABEL; if (yon_confirmation_dialog_call(widgets->MainWindow,data)==GTK_RESPONSE_ACCEPT ){ - pthread_cancel(main_config.install_thread); + pthread_cancel(main_config.install_thread); + g_file_monitor_cancel(widgets->install_progress_monitor); + widgets->install_progress_monitor = NULL; gtk_button_set_label(GTK_BUTTON(widgets->NextButton),NEXT_LABEL); GtkWidget *image = gtk_button_get_image(GTK_BUTTON(widgets->NextButton)); gtk_image_set_from_icon_name(GTK_IMAGE(image),arrow_right_icon_path,GTK_ICON_SIZE_BUTTON);