Merge pull request #5105 from GovanifY/master

ipc_debugger: Fixing NULL ptr call on multiple clear
This commit is contained in:
Pengfei Zhu 2020-02-23 22:31:09 +08:00 committed by GitHub
commit 1dfcb0937e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -114,7 +114,7 @@ void IPCRecorderWidget::SetEnabled(bool enabled) {
} }
void IPCRecorderWidget::Clear() { void IPCRecorderWidget::Clear() {
id_offset = records.size() + 1; id_offset += records.size();
records.clear(); records.clear();
ui->main->invisibleRootItem()->takeChildren(); ui->main->invisibleRootItem()->takeChildren();