diff options
author | Jonas Schnelli <jonas.schnelli@include7.ch> | 2015-03-13 15:40:53 +0100 |
---|---|---|
committer | Jonas Schnelli <jonas.schnelli@include7.ch> | 2015-03-13 15:40:53 +0100 |
commit | 8b60808c1eaddb402a699ba53d865932e08109ec (patch) | |
tree | 7b3a4218e9dca79f030d791f6096e28f0e1b3e21 /src/qt/macdockiconhandler.mm | |
parent | 89e70e931d3d320d2dae4c296601aab113b2e508 (diff) |
[QT] some mac specifiy cleanup (memory handling, unnecessary code)
Diffstat (limited to 'src/qt/macdockiconhandler.mm')
-rw-r--r-- | src/qt/macdockiconhandler.mm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/qt/macdockiconhandler.mm b/src/qt/macdockiconhandler.mm index 564fd0353e..58a0365d3d 100644 --- a/src/qt/macdockiconhandler.mm +++ b/src/qt/macdockiconhandler.mm @@ -68,7 +68,6 @@ void MacDockIconHandler::setMainWindow(QMainWindow *window) { MacDockIconHandler::~MacDockIconHandler() { - [this->m_dockIconClickEventHandler release]; delete this->m_dummyWidget; this->setMainWindow(NULL); } @@ -118,6 +117,11 @@ MacDockIconHandler *MacDockIconHandler::instance() return s_instance; } +void MacDockIconHandler::cleanup() +{ + delete s_instance; +} + void MacDockIconHandler::handleDockIconClickEvent() { if (this->mainWindow) |