From de26606ad5ab5246dbbb29ffe25c64ca14ef0426 Mon Sep 17 00:00:00 2001 From: dzmat Date: Mon, 28 Nov 2016 23:30:47 +0700 Subject: [PATCH] memleak fix --- src/gui/properties/speedwidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/properties/speedwidget.cpp b/src/gui/properties/speedwidget.cpp index ba9bb03a8..44f4e2767 100644 --- a/src/gui/properties/speedwidget.cpp +++ b/src/gui/properties/speedwidget.cpp @@ -73,7 +73,7 @@ SpeedWidget::SpeedWidget(PropertiesWidget *parent) connect(m_periodCombobox, SIGNAL(currentIndexChanged(int)), this, SLOT(onPeriodChange(int))); - m_graphsMenu = new QMenu(); + m_graphsMenu = new QMenu(this); m_graphsMenu->addAction(tr("Total Upload")); m_graphsMenu->addAction(tr("Total Download")); m_graphsMenu->addAction(tr("Payload Upload"));