i am a newbie,and i am confused about the usage of cleanup stack. i don't know when to use CleanupStack::PushL().
thanks in advance.
and there is a code belwo:
HBufC* numberBuf = NULL;
TPbkContactItemField* phonenoField = contact->FindField(EPbkFieldIdPhoneNumberMobile);
CContactTextField* phoneno = phonenoField->TextStorage();
numberBuf = phoneno->Text().AllocLC();
i don't know if i need to push variable phonenoField and phoneno into cleanup stack .
if don't ,whether i need to use DELETE to release the variables.