Furi: wait for timer wind down in destructor (#1716)

This commit is contained in:
あく
2022-09-08 15:47:23 +09:00
committed by GitHub
parent d1c79a83de
commit ff33bc6aea
2 changed files with 15 additions and 16 deletions

View File

@@ -463,8 +463,6 @@ void text_input_free(TextInput* text_input) {
// Send stop command
furi_timer_stop(text_input->timer);
// Wait till timer stop
while(furi_timer_is_running(text_input->timer)) furi_delay_tick(1);
// Release allocated memory
furi_timer_free(text_input->timer);