mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-10-23 03:06:14 +03:00
Setup parent ownership to avoid memory leak
This commit is contained in:
parent
b2b63be798
commit
400f8dc2d8
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue