mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-11-28 19:55:53 +03:00
vere: plugs leak in terminal spinner
This commit is contained in:
parent
de9bd593d9
commit
adb41996f0
@ -835,7 +835,7 @@ u3_term_start_spinner(c3_c* why_c, c3_o now_o)
|
||||
u3_utty* uty_u = _term_main();
|
||||
u3_utat* tat_u = &uty_u->tat_u;
|
||||
|
||||
c3_free(tat_u-> sun_u.why_c);
|
||||
c3_free(tat_u->sun_u.why_c);
|
||||
tat_u->sun_u.why_c = why_c;
|
||||
|
||||
tat_u->sun_u.eve_d = 0;
|
||||
@ -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 ) {
|
||||
|
Loading…
Reference in New Issue
Block a user