diff --git a/source/ubinstall-gtk.c b/source/ubinstall-gtk.c index af33f9d..db168ac 100644 --- a/source/ubinstall-gtk.c +++ b/source/ubinstall-gtk.c @@ -1002,7 +1002,6 @@ gboolean yon_installation_progress_update(void *data) { if (!yon_char_is_empty(text[size-1]) && text[size-1][0] == '(') { char *current_copy = yon_char_new(text[size-1]); char *percentage = yon_char_divide_search(current_copy, ")", -1); - yon_char_parsed_free(text, size); if (!strstr(percentage, "#pb")) { double fraction = atof(percentage+1); @@ -1025,6 +1024,7 @@ gboolean yon_installation_progress_update(void *data) { yon_char_parsed_free(parsed, size); } + yon_char_parsed_free(text, size); free(current_copy); free(percentage); }