--- a/metadataengine/client/src/mdesessionimpl.cpp Wed Mar 31 22:19:07 2010 +0300
+++ b/metadataengine/client/src/mdesessionimpl.cpp Wed Apr 14 16:24:03 2010 +0300
@@ -2276,8 +2276,8 @@
CMdENotifierAO* notifier = CMdENotifierAO::NewLC( *this, iSession );
notifier->RegisterL( type, &aObserver, aCondition, *namespaceDef );
+ iNotifiers.AppendL( notifier );
CleanupStack::Pop( notifier );
- iNotifiers.AppendL( notifier );
CleanupStack::PopAndDestroy( aCondition );
}
@@ -2303,8 +2303,8 @@
notifier->RegisterL( EObjectNotifyPresent | EObjectNotifyNotPresent,
&aObserver, NULL, namespaceDef );
+ iNotifiers.AppendL( notifier );
CleanupStack::Pop( notifier );
- iNotifiers.AppendL( notifier );
}
void CMdESessionImpl::AddRelationObserverL( MMdERelationObserver& aObserver,
@@ -2359,8 +2359,8 @@
CMdENotifierAO* notifier = CMdENotifierAO::NewLC( *this, iSession );
notifier->RegisterL( type, &aObserver, aCondition, *namespaceDef );
+ iNotifiers.AppendL( notifier );
CleanupStack::Pop( notifier );
- iNotifiers.AppendL( notifier );
CleanupStack::PopAndDestroy( aCondition );
}
@@ -2416,8 +2416,8 @@
CMdENotifierAO* notifier = CMdENotifierAO::NewLC( *this, iSession );
notifier->RegisterL( type, &aObserver, aCondition, *namespaceDef );
+ iNotifiers.AppendL( notifier );
CleanupStack::Pop( notifier );
- iNotifiers.AppendL( notifier );
CleanupStack::PopAndDestroy( aCondition );
}
@@ -2445,8 +2445,8 @@
notifier->RegisterL( ERelationNotifyPresent | ERelationNotifyNotPresent,
&aObserver, NULL, namespaceDef );
+ iNotifiers.AppendL( notifier );
CleanupStack::Pop( notifier );
- iNotifiers.AppendL( notifier );
}
void CMdESessionImpl::AddEventObserverL( MMdEEventObserver& aObserver,
@@ -2502,8 +2502,8 @@
CMdENotifierAO* notifier = CMdENotifierAO::NewLC( *this, iSession );
notifier->RegisterL( type, &aObserver, aCondition, *namespaceDef );
+ iNotifiers.AppendL( notifier );
CleanupStack::Pop( notifier );
- iNotifiers.AppendL( notifier );
CleanupStack::PopAndDestroy( aCondition );
}
@@ -2996,8 +2996,8 @@
CMdENotifierAO* notifier = CMdENotifierAO::NewLC( *this, iSession );
notifier->RegisterL( type, &aObserver, aCondition, *namespaceDef );
+ iNotifiers.AppendL( notifier );
CleanupStack::Pop( notifier );
- iNotifiers.Append( notifier );
CleanupStack::PopAndDestroy( aCondition );
}