TryCatch(__pForm != null, , "Allocation of GlesForm failed.");
r = __pForm->Construct(FORM_STYLE_NORMAL);
- TryCatch(!IsFailed(r), , "__pForm->Construct(FORM_STYLE_NORMAL) failed.");
+ TryCatch(!IsFailed(r), delete __pForm, "__pForm->Construct(FORM_STYLE_NORMAL) failed.");
r = GetAppFrame()->GetFrame()->AddControl(*__pForm);
- TryCatch(!IsFailed(r), , "GetAppFrame()->GetFrame()->AddControl(*__pForm) failed.");
+ TryCatch(!IsFailed(r), delete __pForm, "GetAppFrame()->GetFrame()->AddControl(*__pForm) failed.");
TryCatch(InitEGL(), , "InitEGL() failed.");
return true;
CATCH:
- delete pAppFrame;
- delete __pForm;
- __pForm = null;
-
AppLog("eglError : %#x glError : %#x VENDOR : %s GL_RENDERER : %s GL_VERSION : %s"
, static_cast<unsigned int>(eglGetError())
, static_cast<unsigned int>(glGetError())