pull/109/head
parent ca587223cc
commit b392b74e02

@ -77,8 +77,8 @@ gboolean on_terminal_check_progress(main_window *widgets){
gtk_progress_bar_set_fraction(GTK_PROGRESS_BAR(widgets->TerminalInfoLabel), percentage / 100); gtk_progress_bar_set_fraction(GTK_PROGRESS_BAR(widgets->TerminalInfoLabel), percentage / 100);
g_free(last_match); g_free(last_match);
} }
g_free(text); if (text) g_free(text);
g_match_info_unref(match); if (match) g_match_info_unref(match);
g_mutex_lock(&main_config.progress_mutex); g_mutex_lock(&main_config.progress_mutex);
if (percentage>99||!main_config.progress_active){ if (percentage>99||!main_config.progress_active){
@ -91,6 +91,9 @@ gboolean on_terminal_check_progress(main_window *widgets){
} }
void on_command_cancel(GtkWidget *,main_window *widgets){ void on_command_cancel(GtkWidget *,main_window *widgets){
g_mutex_lock(&main_config.progress_mutex);
main_config.progress_active=0;
g_mutex_unlock(&main_config.progress_mutex);
gtk_widget_destroy(widgets->TerminalRevealer); gtk_widget_destroy(widgets->TerminalRevealer);
} }

Loading…
Cancel
Save