equal
deleted
inserted
replaced
93 iCollectionUtility = NULL; |
93 iCollectionUtility = NULL; |
94 |
94 |
95 iActivityManager = CTMActivityManager::NewL( this, KBackgroundGenerationIdle); |
95 iActivityManager = CTMActivityManager::NewL( this, KBackgroundGenerationIdle); |
96 |
96 |
97 UpdatePSValues(ETrue); |
97 UpdatePSValues(ETrue); |
98 |
|
99 if(iForegroundGenerationObserver) |
|
100 { |
|
101 delete iForegroundGenerationObserver; |
|
102 iForegroundGenerationObserver = NULL; |
|
103 } |
|
104 |
98 |
105 RProperty::Define(KTAGDPSNotification, KMPXHarvesting, RProperty::EInt); |
99 RProperty::Define(KTAGDPSNotification, KMPXHarvesting, RProperty::EInt); |
106 |
100 |
107 //start foreground generation observer |
101 //start foreground generation observer |
108 iForegroundGenerationObserver = CTMRPropertyObserver::NewL( *this, KTAGDPSNotification, KForceBackgroundGeneration, ETrue ); |
102 iForegroundGenerationObserver = CTMRPropertyObserver::NewL( *this, KTAGDPSNotification, KForceBackgroundGeneration, ETrue ); |
163 |
157 |
164 if(iForegroundGenerationObserver) |
158 if(iForegroundGenerationObserver) |
165 { |
159 { |
166 delete iForegroundGenerationObserver; |
160 delete iForegroundGenerationObserver; |
167 iForegroundGenerationObserver = NULL; |
161 iForegroundGenerationObserver = NULL; |
|
162 } |
|
163 |
|
164 if(iFormatObserver) |
|
165 { |
|
166 delete iFormatObserver; |
|
167 iFormatObserver = NULL; |
168 } |
168 } |
169 |
169 |
170 if ( iCollectionUtility ) |
170 if ( iCollectionUtility ) |
171 { |
171 { |
172 iCollectionUtility->Close(); |
172 iCollectionUtility->Close(); |
185 { |
185 { |
186 iTMSession->RemoveRequestObserver(); |
186 iTMSession->RemoveRequestObserver(); |
187 delete iTMSession; |
187 delete iTMSession; |
188 iTMSession = NULL; |
188 iTMSession = NULL; |
189 } |
189 } |
190 |
|
191 delete iFormatObserver; |
|
192 |
190 |
193 TN_DEBUG1( "CThumbAGProcessor::~CThumbAGProcessor() - end" ); |
191 TN_DEBUG1( "CThumbAGProcessor::~CThumbAGProcessor() - end" ); |
194 } |
192 } |
195 |
193 |
196 // ----------------------------------------------------------------------------- |
194 // ----------------------------------------------------------------------------- |