From: Zack Rusin Date: Sun, 24 Apr 2011 22:05:27 +0000 (-0400) Subject: Plug 2 more memory leaks in the gui. X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=5492af531623ee0a1d8822983d916b19fb497a4c;p=apitrace Plug 2 more memory leaks in the gui. --- diff --git a/gui/argumentseditor.cpp b/gui/argumentseditor.cpp index 04a1952..0aeafeb 100644 --- a/gui/argumentseditor.cpp +++ b/gui/argumentseditor.cpp @@ -143,6 +143,7 @@ ArgumentsEditor::ArgumentsEditor(QWidget *parent) ArgumentsEditor::~ArgumentsEditor() { + delete m_model; } void ArgumentsEditor::setCall(ApiTraceCall *call) diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp index 1b4de12..64802ef 100644 --- a/gui/mainwindow.cpp +++ b/gui/mainwindow.cpp @@ -617,7 +617,8 @@ void MainWindow::initObjects() m_proxyModel = new ApiTraceFilter(); m_proxyModel->setSourceModel(m_model); m_ui.callView->setModel(m_proxyModel); - m_ui.callView->setItemDelegate(new ApiCallDelegate); + m_ui.callView->setItemDelegate( + new ApiCallDelegate(m_ui.callView)); m_ui.callView->resizeColumnToContents(0); m_ui.callView->header()->swapSections(0, 1); m_ui.callView->setColumnWidth(1, 42);