Valgrind: Fix memory leaks

Detected by memcheck.

Change-Id: I7eaf4cf7ee2b4c03b03bfc1bbc2d49c68612b6ad
Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
Orgad Shaneh
2016-03-14 10:03:04 +02:00
committed by Orgad Shaneh
parent e13f1a5047
commit 0a89b89065

View File

@@ -442,6 +442,7 @@ CallgrindTool::CallgrindTool(QObject *parent)
auto button = new QToolButton;
button->setMenu(menu);
menu->setParent(button);
button->setPopupMode(QToolButton::InstantPopup);
button->setText(QLatin1String("$"));
button->setToolTip(tr("Cost Format"));