diff -r 5456b4e8b3a8 -r 3321d3e205b6 idlehomescreen/nativeuicontroller/src/aitoolbarrenderer.cpp --- a/idlehomescreen/nativeuicontroller/src/aitoolbarrenderer.cpp Wed Sep 01 12:32:46 2010 +0100 +++ b/idlehomescreen/nativeuicontroller/src/aitoolbarrenderer.cpp Tue Sep 14 20:58:58 2010 +0300 @@ -36,7 +36,7 @@ #include "ainativeuiplugins.h" -#include +#include #include "debug.h" using namespace AiNativeUiController; @@ -337,8 +337,10 @@ if ( index >= iButtons.Count() ) { button = CAiToolbarButton::NewL(); + CleanupStack::PushL( button ); button->SetShortcutId( aShortcutId ); - iButtons.Append( button ); + iButtons.AppendL( button ); + CleanupStatck::Pop( button ); } // Use the old button