qtinternetradio/ui/src/irmemorycollector.cpp
changeset 3 ee64f059b8e1
parent 0 09774dfdd46b
child 12 608f67c22514
equal deleted inserted replaced
2:2e1adbfc62af 3:ee64f059b8e1
    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 }