diff -r 4ccf8e394726 -r 51722b10598b commsfwsupport/commselements/commsfw/src/cfutil.cpp --- a/commsfwsupport/commselements/commsfw/src/cfutil.cpp Wed Apr 14 17:14:05 2010 +0300 +++ b/commsfwsupport/commselements/commsfw/src/cfutil.cpp Tue Apr 27 17:53:34 2010 +0300 @@ -438,6 +438,7 @@ { do { + CleanupStack::PushL(dir); const TInt cnt = dir->Count(); for(TInt i = 0; i < cnt; ++i) { @@ -445,7 +446,7 @@ fullEntry.Set(entry.iName, &ff.File(), NULL); AddL(TOwnEntry(fullEntry, entry)); } - delete dir; + CleanupStack::PopAndDestroy(dir); } while(ff.FindWild(dir) == KErrNone); } @@ -469,46 +470,46 @@ TParse fullEntry; CDir* dir; RArray files; + CleanupClosePushL(files); TBool found; if(ff.FindWildByDir(aFileMask, aDir, dir) == KErrNone) { do { + CleanupStack::PushL(dir); const TInt cnt = dir->Count(); for(TInt i = 0; i < cnt; ++i) { const TEntry& entry = (*dir)[i]; - if(files.Count()!=0) - { + if(files.Count()!=0) + { found = EFalse; for( TInt Index=0;Index