Minor: fix memory leak on GraphingWindow file operations

This commit is contained in:
Alexey Esaulenko
2024-01-19 14:59:57 +04:00
parent c3683b0f40
commit fa707ab2da
2 changed files with 75 additions and 80 deletions
-1
View File
@@ -361,7 +361,6 @@ void NewGraphDialog::loadNodes()
void NewGraphDialog::loadMessages(int idx)
{
int numFiles = 0;
DBC_MESSAGE *msg;
ui->cbMessages->clear();
if (dbcHandler == nullptr) return;
if ((numFiles = dbcHandler->getFileCount()) == 0) return;