1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-24 05:25:37 +00:00

Setup parent ownership to avoid memory leak

This commit is contained in:
Chocobo1 2017-08-24 20:00:39 +08:00
parent 1afd5f70dd
commit b47c90f0e0
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C

View File

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