mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 14:08:03 -06:00
Fix memory leak.
This commit is contained in:
@@ -74,6 +74,11 @@ ShutdownConfirmDlg::ShutdownConfirmDlg(const ShutdownAction &action)
|
||||
move(Utils::Misc::screenCenter(this));
|
||||
}
|
||||
|
||||
ShutdownConfirmDlg::~ShutdownConfirmDlg()
|
||||
{
|
||||
delete ui;
|
||||
}
|
||||
|
||||
void ShutdownConfirmDlg::showEvent(QShowEvent *event)
|
||||
{
|
||||
QDialog::showEvent(event);
|
||||
|
||||
@@ -49,6 +49,7 @@ class ShutdownConfirmDlg : public QDialog
|
||||
|
||||
public:
|
||||
ShutdownConfirmDlg(const ShutdownAction &action);
|
||||
~ShutdownConfirmDlg();
|
||||
bool shutdown() const;
|
||||
|
||||
static bool askForConfirmation(const ShutdownAction &action);
|
||||
|
||||
Reference in New Issue
Block a user