Browse Source

Fix memory leak.

adaptive-webui-19844
sledgehammer999 9 years ago
parent
commit
2b0ad4477e
  1. 5
      src/gui/shutdownconfirm.cpp
  2. 1
      src/gui/shutdownconfirm.h

5
src/gui/shutdownconfirm.cpp

@ -74,6 +74,11 @@ ShutdownConfirmDlg::ShutdownConfirmDlg(const ShutdownAction &action) @@ -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);

1
src/gui/shutdownconfirm.h

@ -49,6 +49,7 @@ class ShutdownConfirmDlg : public QDialog @@ -49,6 +49,7 @@ class ShutdownConfirmDlg : public QDialog
public:
ShutdownConfirmDlg(const ShutdownAction &action);
~ShutdownConfirmDlg();
bool shutdown() const;
static bool askForConfirmation(const ShutdownAction &action);

Loading…
Cancel
Save