mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 15:07:22 -06:00
Setup parent ownership to avoid memory leak
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user