vere: plugs leak in terminal spinner
@@ -854,6 +854,9 @@ u3_term_start_spinner(c3_c* why_c, c3_o now_o)
wen_d, _SPIN_RATE_US);
}
}
+ else {
+ c3_free(why_c);
+ }
}
/* u3_term_stop_spinner(): reset spinner state and restore input line.
@@ -865,6 +868,9 @@ u3_term_stop_spinner(void)
u3_utty* uty_u = _term_main();
u3_utat* tat_u = &uty_u->tat_u;
+ c3_free(tat_u->sun_u.why_c);
+ tat_u->sun_u.why_c = 0;
+
uv_timer_stop(&tat_u->sun_u.tim_u);
if ( c3y == tat_u->sun_u.diz_o ) {
