Don't forget to delete TorrentContentAdaptor instance

PR #19825.
Closes #19816.
This commit is contained in:
Vladimir Golovnev
2023-10-31 10:20:23 +03:00
committed by GitHub
parent a689ccf798
commit e7f38ec6ce
2 changed files with 6 additions and 4 deletions

View File

@@ -29,6 +29,8 @@
#pragma once
#include <memory>
#include <QDialog>
#include "base/bittorrent/addtorrentparams.h"
@@ -85,7 +87,7 @@ private:
void showEvent(QShowEvent *event) override;
Ui::AddNewTorrentDialog *m_ui = nullptr;
TorrentContentAdaptor *m_contentAdaptor = nullptr;
std::unique_ptr<TorrentContentAdaptor> m_contentAdaptor;
BitTorrent::TorrentDescriptor m_torrentDescr;
BitTorrent::AddTorrentParams m_torrentParams;
int m_savePathIndex = -1;