From 6cc65f5e1cf1eb0c870323d4c19e2d5c9cc9fd11 Mon Sep 17 00:00:00 2001 From: Boris Barbulovski Date: Wed, 15 Jan 2014 18:52:42 +0100 Subject: Fix some memory leaks. Memory leaks were caused by broken parent/child relations. Signed-off-by: Boris Barbulovski Signed-off-by: Dirk Hohndel --- qt-ui/printlayout.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qt-ui/printlayout.cpp') diff --git a/qt-ui/printlayout.cpp b/qt-ui/printlayout.cpp index b058bbc7d..c76068769 100644 --- a/qt-ui/printlayout.cpp +++ b/qt-ui/printlayout.cpp @@ -265,7 +265,7 @@ QTableView *PrintLayout::createProfileTable(ProfilePrintModel *model, const int // resize table->resize(tableW, profilePrintTableMaxH); // hide the grid and set a stylesheet - table->setItemDelegate(new ProfilePrintDelegate()); + table->setItemDelegate(new ProfilePrintDelegate(this)); table->setShowGrid(false); table->setStyleSheet( "QTableView { border: none }" -- cgit v1.2.3-70-g09d2