int stringLengthMin = 0;
int stringLengthMax = 0;
- String minLength = *static_cast<String*>(pItemNode->GetAttributeN(ID_APPSETTING_ATTRIBUTE_TYPE_MIN_LENGTH));
- if (minLength != null)
+ String* pMinLength = static_cast<String*>(pItemNode->GetAttributeN(ID_APPSETTING_ATTRIBUTE_TYPE_MIN_LENGTH));
+ if (pMinLength != null)
{
- Integer::Parse(minLength, stringLengthMin);
-
+ Integer::Parse(*pMinLength, stringLengthMin);
+ delete pMinLength;
AppLogDebug("max String size [%d]", stringLengthMin);
}
- String maxLength = *static_cast<String*>(pItemNode->GetAttributeN(ID_APPSETTING_ATTRIBUTE_TYPE_MAX_LENGTH));
- if (maxLength != null)
+ String* pMaxLength = static_cast<String*>(pItemNode->GetAttributeN(ID_APPSETTING_ATTRIBUTE_TYPE_MAX_LENGTH));
+ if (pMaxLength != null)
{
- Integer::Parse(maxLength, stringLengthMax);
-
+ Integer::Parse(*pMaxLength, stringLengthMax);
+ delete pMaxLength;
AppLogDebug("max String size [%d]", stringLengthMax);
}
}
else if ((pItemNode->GetType()).Equals(ID_APPSETTING_ITEM_TYPE_EXPAND_LIST, false))
{
- String* value = pItemNode->GetAttributeN(ID_APPSETTING_ATTRIBUTE_TYPE_VALUE);
- String expendList;
-
IEnumerator* pCurrentIEnumerator = pItemNode->GetCurrentIEnumerator();
if (!((pCurrentIEnumerator != null)
{
AppLogDebug("Expandlist has no expandItems & remove");
delete pCurrentIEnumerator;
+ delete pItem;
+ delete itemText;
return null;
}
+ String* value = pItemNode->GetAttributeN(ID_APPSETTING_ATTRIBUTE_TYPE_VALUE);
+ String expendList;
+
pItemNode->RegisterObserverlistener(__pIOAppSetting);
pItem->Construct(Dimension(itemWidth, itemMainRectangle.height), style);