Browse Source

Setup parent ownership to avoid memory leak

adaptive-webui-19844
Chocobo1 7 years ago
parent
commit
b47c90f0e0
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
  1. 2
      src/gui/properties/speedwidget.cpp

2
src/gui/properties/speedwidget.cpp

@ -87,7 +87,7 @@ SpeedWidget::SpeedWidget(PropertiesWidget *parent)
m_graphsMenu->addAction(tr("Tracker Download")); m_graphsMenu->addAction(tr("Tracker Download"));
m_graphsMenuActions = m_graphsMenu->actions(); m_graphsMenuActions = m_graphsMenu->actions();
m_graphsSignalMapper = new QSignalMapper(); m_graphsSignalMapper = new QSignalMapper(this);
for (int id = SpeedPlotView::UP; id < SpeedPlotView::NB_GRAPHS; ++id) { for (int id = SpeedPlotView::UP; id < SpeedPlotView::NB_GRAPHS; ++id) {
QAction *action = m_graphsMenuActions.at(id); QAction *action = m_graphsMenuActions.at(id);

Loading…
Cancel
Save