idlehomescreen/nativeuicontroller/src/aistatuspanetouchui.cpp
branchRCL_3
changeset 35 3321d3e205b6
parent 34 5456b4e8b3a8
--- a/idlehomescreen/nativeuicontroller/src/aistatuspanetouchui.cpp	Wed Sep 01 12:32:46 2010 +0100
+++ b/idlehomescreen/nativeuicontroller/src/aistatuspanetouchui.cpp	Tue Sep 14 20:58:58 2010 +0300
@@ -30,7 +30,7 @@
 #include <hscontentpublisher.h>
 #include <hspublisherinfo.h>
 #include <aidevicestatuscontentmodel.h>
-#include <AiNativeUi.rsg>
+#include <ainativeui.rsg>
 
 // User includes
 #include "aistrcnv.h"
@@ -334,8 +334,9 @@
           iProfileNamePointerArray.Remove( aIndex - 1);
           }
 
-        HBufC* name = aText.AllocL();
-        iProfileNamePointerArray.Insert( name, aIndex - 1 );
+        HBufC* name = aText.AllocLC();
+        iProfileNamePointerArray.InsertL( name, aIndex - 1 );
+        CleanupStack::Pop( name );
         break;
         }
         default: