metadataengine/client/src/mdesessionimpl.cpp
changeset 2 b73a2e62868f
parent 1 acef663c1218
child 6 646a02f170b9
equal deleted inserted replaced
1:acef663c1218 2:b73a2e62868f
  2521         {
  2521         {
  2522     	iNotifiers[index]->Cancel();
  2522     	iNotifiers[index]->Cancel();
  2523     	delete iNotifiers[index];
  2523     	delete iNotifiers[index];
  2524     	iNotifiers[index] = NULL;
  2524     	iNotifiers[index] = NULL;
  2525     	iNotifiers.Remove( index );
  2525     	iNotifiers.Remove( index );
       
  2526     	iNotifiers.Compress();
  2526         }
  2527         }
  2527     else
  2528     else
  2528     	{
  2529     	{
  2529     	User::Leave( KErrNotFound );
  2530     	User::Leave( KErrNotFound );
  2530     	}
  2531     	}
  2542         {
  2543         {
  2543     	iNotifiers[index]->Cancel();
  2544     	iNotifiers[index]->Cancel();
  2544     	delete iNotifiers[index];
  2545     	delete iNotifiers[index];
  2545     	iNotifiers[index] = NULL;
  2546     	iNotifiers[index] = NULL;
  2546     	iNotifiers.Remove( index );
  2547     	iNotifiers.Remove( index );
       
  2548     	iNotifiers.Compress();
  2547         }
  2549         }
  2548     else
  2550     else
  2549     	{
  2551     	{
  2550     	User::Leave( KErrNotFound );
  2552     	User::Leave( KErrNotFound );
  2551     	}
  2553     	}
  2572         {
  2574         {
  2573     	iNotifiers[index]->Cancel();
  2575     	iNotifiers[index]->Cancel();
  2574     	delete iNotifiers[index];
  2576     	delete iNotifiers[index];
  2575     	iNotifiers[index] = NULL;
  2577     	iNotifiers[index] = NULL;
  2576     	iNotifiers.Remove( index );
  2578     	iNotifiers.Remove( index );
       
  2579     	iNotifiers.Compress();
  2577         }
  2580         }
  2578     else
  2581     else
  2579     	{
  2582     	{
  2580     	User::Leave( KErrNotFound );
  2583     	User::Leave( KErrNotFound );
  2581     	}
  2584     	}
  2625         {
  2628         {
  2626     	iNotifiers[index]->Cancel();
  2629     	iNotifiers[index]->Cancel();
  2627     	delete iNotifiers[index];
  2630     	delete iNotifiers[index];
  2628     	iNotifiers[index] = NULL;
  2631     	iNotifiers[index] = NULL;
  2629     	iNotifiers.Remove( index );
  2632     	iNotifiers.Remove( index );
       
  2633     	iNotifiers.Compress();
  2630         }
  2634         }
  2631     else
  2635     else
  2632     	{
  2636     	{
  2633     	User::Leave( KErrNotFound );
  2637     	User::Leave( KErrNotFound );
  2634     	}
  2638     	}