imagehandlingutilities/thumbnailmanager/thumbagdaemon/src/thumbagaudioobserver.cpp
--- a/imagehandlingutilities/thumbnailmanager/thumbagdaemon/src/thumbagaudioobserver.cpp Thu Sep 02 20:45:11 2010 +0300
+++ b/imagehandlingutilities/thumbnailmanager/thumbagdaemon/src/thumbagaudioobserver.cpp Fri Sep 17 08:32:20 2010 +0300
@@ -337,12 +337,10 @@
// set observing conditions
CMdELogicCondition* addCondition = CMdELogicCondition::NewLC( ELogicConditionOperatorAnd );
- CMdEObjectCondition& addObjectCondition = addCondition->AddObjectConditionL( audioDef );
- CleanupStack::PushL( &addObjectCondition );
+ addCondition->AddObjectConditionL( audioDef );
CMdELogicCondition* modifyCondition = CMdELogicCondition::NewLC( ELogicConditionOperatorAnd );
- CMdEObjectCondition& modifyObjectCondition = modifyCondition->AddObjectConditionL( audioDef );
- CleanupStack::PushL( &modifyObjectCondition );
+ modifyCondition->AddObjectConditionL( audioDef );
// add observer
iMdESession->AddObjectObserverL( *this, addCondition, ENotifyAdd );
@@ -350,7 +348,7 @@
// modify observer
iMdESession->AddObjectObserverL( *this, modifyCondition, ENotifyModify );
- CleanupStack::Pop( 4, addCondition );
+ CleanupStack::Pop( 2, addCondition );
TN_DEBUG1( "CThumbAGAudioObserver::AddObserversL() - end" );
OstTrace0( TRACE_FATAL, DUP1_CTHUMBAGAUDIOOBSERVER_ADDOBSERVERSL, "CThumbAGAudioObserver::AddObserversL - end" );