__pBackgroundLabel = null;
}
+ if (__pBitmapLabel != null)
+ {
+ DetachChild(*__pBitmapLabel);
+ delete __pBitmapLabel;
+ __pBitmapLabel = null;
+ }
+
+ if (__pTextLabel != null)
+ {
+ DetachChild(*__pTextLabel);
+ delete __pTextLabel;
+ __pTextLabel = null;
+ }
+
delete __pMagentaBgBitmap;
__pMagentaBgBitmap = null;
if (__pSubItems == null)
{
__pSubItems = new (std::nothrow) ArrayList;
- SysTryReturn(NID_UI_CTRL, (__pSubItems != null), E_OUT_OF_MEMORY, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory allocation failed.");
+ SysTryReturn(NID_UI_CTRL, (__pSubItems != null), E_OUT_OF_MEMORY, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory allocation failed.");
result r = __pSubItems->Construct();
if (r != E_SUCCESS)
{
pContainer->Activate(true);
_AccessibilityElement* pElement = new (std::nothrow) _AccessibilityElement(true);
- SysTryReturnVoidResult(NID_UI_CTRL, pElement, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory allocation failed.");
+ SysTryReturnVoidResult(NID_UI_CTRL, pElement, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory allocation failed.");
pElement->SetTrait(L"Optionual popup");
pElement->SetBounds(FloatRectangle(0.0f, 0.0f, GetBoundsF().width, GetBoundsF().height));
if (pContainerOptionMenu != null)
{
_AccessibilityElement* pElementOptionMenu = new (std::nothrow) _AccessibilityElement(true);
- SysTryReturnVoidResult(NID_UI_CTRL, pElementOptionMenu, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory allocation failed.");
+ SysTryReturnVoidResult(NID_UI_CTRL, pElementOptionMenu, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory allocation failed.");
pElementOptionMenu->SetSupportOperatingGesture(false);
pElementOptionMenu->SetTrait(L"Optionual popup");