Fix to properly free memory that was allocated.

This commit is contained in:
Collin Kidder
2015-08-08 19:09:01 -04:00
parent 89da3421f9
commit f9fef43a9a
3 changed files with 51 additions and 0 deletions
+3
View File
@@ -169,6 +169,9 @@ MainWindow::MainWindow(QWidget *parent) :
//default height of an item in the table. Need to do this in case
//of scaling or font differences between different computers.
CANFrame temp;
temp.bus = 0;
temp.ID = 0x100;
temp.len = 0;
model->addFrame(temp, true);
normalRowHeight = ui->canFramesView->rowHeight(0);
qDebug() << "normal row height = " << normalRowHeight;