msg: clear buffered status_line on flush

It shouldn't be used after flush anymore.
This commit is contained in:
Kacper Michajłow 2024-03-15 09:58:33 +01:00
parent 17a0756ed3
commit 0deefd80bf
1 changed files with 1 additions and 0 deletions

View File

@ -269,6 +269,7 @@ void mp_msg_flush_status_line(struct mp_log *log, bool clear)
}
done:
log->root->status_line.len = 0;
mp_mutex_unlock(&log->root->lock);
}