diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2016-11-19 14:28:55 +0100 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2016-11-23 12:33:36 +0100 |
commit | 5204598f8d07d7432d91e9b8781806d2f3d16415 (patch) | |
tree | 6c346f17f8311f5902a1b1318d37628d597dea1a /src/qt/utilitydialog.h | |
parent | e4f126a7ba66e7317718c30276dff6db92dc1986 (diff) |
qt: Avoid shutdownwindow-related memory leak
Store a reference to the shutdown window on BitcoinApplication,
so that it will be deleted when exiting the main loop.
Diffstat (limited to 'src/qt/utilitydialog.h')
-rw-r--r-- | src/qt/utilitydialog.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qt/utilitydialog.h b/src/qt/utilitydialog.h index 843bd7f67b..b930429578 100644 --- a/src/qt/utilitydialog.h +++ b/src/qt/utilitydialog.h @@ -43,7 +43,7 @@ class ShutdownWindow : public QWidget public: ShutdownWindow(QWidget *parent=0, Qt::WindowFlags f=0); - static void showShutdownWindow(BitcoinGUI *window); + static QWidget *showShutdownWindow(BitcoinGUI *window); protected: void closeEvent(QCloseEvent *event); |