mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-10-22 10:46:04 +03:00
Fix memory leak.
This commit is contained in:
parent
93d8cadaaf
commit
2b0ad4477e
2 changed files with 6 additions and 0 deletions
|
@ -74,6 +74,11 @@ ShutdownConfirmDlg::ShutdownConfirmDlg(const ShutdownAction &action)
|
||||||
move(Utils::Misc::screenCenter(this));
|
move(Utils::Misc::screenCenter(this));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ShutdownConfirmDlg::~ShutdownConfirmDlg()
|
||||||
|
{
|
||||||
|
delete ui;
|
||||||
|
}
|
||||||
|
|
||||||
void ShutdownConfirmDlg::showEvent(QShowEvent *event)
|
void ShutdownConfirmDlg::showEvent(QShowEvent *event)
|
||||||
{
|
{
|
||||||
QDialog::showEvent(event);
|
QDialog::showEvent(event);
|
||||||
|
|
|
@ -49,6 +49,7 @@ class ShutdownConfirmDlg : public QDialog
|
||||||
|
|
||||||
public:
|
public:
|
||||||
ShutdownConfirmDlg(const ShutdownAction &action);
|
ShutdownConfirmDlg(const ShutdownAction &action);
|
||||||
|
~ShutdownConfirmDlg();
|
||||||
bool shutdown() const;
|
bool shutdown() const;
|
||||||
|
|
||||||
static bool askForConfirmation(const ShutdownAction &action);
|
static bool askForConfirmation(const ShutdownAction &action);
|
||||||
|
|
Loading…
Reference in a new issue