equal
deleted
inserted
replaced
17 |
17 |
18 #include <QCoreApplication> |
18 #include <QCoreApplication> |
19 |
19 |
20 #include "irmemorycollector.h" |
20 #include "irmemorycollector.h" |
21 #include "irapplication.h" |
21 #include "irapplication.h" |
22 #include "irabstractviewmanager.h" |
22 #include "irviewmanager.h" |
23 #include "irplaycontroller.h" |
|
24 |
23 |
25 IRMemoryCollector::IRMemoryCollector(IRApplication* aApplication) : iApplication(aApplication) |
24 IRMemoryCollector::IRMemoryCollector(IRApplication* aApplication) : iApplication(aApplication) |
26 { |
25 { |
27 connect(qApp, SIGNAL(aboutToQuit()), this, SLOT(aboutToQuit())); |
26 connect(qApp, SIGNAL(aboutToQuit()), this, SLOT(aboutToQuit())); |
28 } |
27 } |
29 |
28 |
30 void IRMemoryCollector::aboutToQuit() |
29 void IRMemoryCollector::aboutToQuit() |
31 { |
30 { |
32 IRAbstractViewManager *viewManager = iApplication->getViewManager(); |
31 IRViewManager *viewManager = iApplication->getViewManager(); |
33 delete iApplication; |
32 delete iApplication; |
34 iApplication = NULL; |
33 iApplication = NULL; |
35 |
34 |
36 delete viewManager; |
35 delete viewManager; |
37 } |
36 } |