idlehomescreen/nativeuicontroller/src/aitoolbarrenderer.cpp
branchRCL_3
changeset 35 3321d3e205b6
parent 34 5456b4e8b3a8
--- 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 <AiNativeUi.rsg>
+#include <ainativeui.rsg>
 #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