diff -r ea4b2e4f7cac -r 220a17280356 webengine/widgetregistry/Server/src/WidgetRegistry.cpp --- a/webengine/widgetregistry/Server/src/WidgetRegistry.cpp Fri Feb 19 23:55:03 2010 +0200 +++ b/webengine/widgetregistry/Server/src/WidgetRegistry.cpp Fri Mar 12 15:48:51 2010 +0200 @@ -776,13 +776,13 @@ TRAP( error, InsertL( entry ) ); if ( KErrNone != error ) { - CleanupStack::PopAndDestroy( entry ); + delete entry; } else { __ASSERT_DEBUG( res == entry, User::Invariant() ); // Entry was inserted successfully. - CleanupStack::Pop( entry ); + //CleanupStack::Pop( entry ); // add uid to AppArchList if not there, // this can happend due to UID // reallocation for UID collision resolution @@ -802,14 +802,14 @@ { // Pop and delete the un-needed entry so it is not left behind. errorCount++; - CleanupStack::PopAndDestroy( entry ); } } else { // entry error - CleanupStack::PopAndDestroy( entry ); + delete entry; } + CleanupStack::Pop(); //entry } // for CleanupStack::PopAndDestroy( 2, &file ); // readStream, file