diff --git a/source/ubinstall-gtk-log.c b/source/ubinstall-gtk-log.c index 9ce537f..2721583 100644 --- a/source/ubinstall-gtk-log.c +++ b/source/ubinstall-gtk-log.c @@ -84,7 +84,7 @@ void on_summary_log_view(GtkWidget *,main_window *widgets){ } void yon_installation_progress_update(GFileMonitor *,GFile *,GFile *,GFileMonitorEvent ,main_window *widgets) { - int size; + int size=0; g_mutex_lock(&main_config.progress_mutex); config_str text = yon_file_open(progress_path, &size); @@ -119,5 +119,7 @@ void yon_installation_progress_update(GFileMonitor *,GFile *,GFile *,GFileMonito } yon_char_parsed_free(text, size); + size=0; + text=NULL; } }