}
else
{
- if (pSglInfo->pVisualElement != null)
- {
- pSglInfo->pVisualElement->SetSurface(pVisualElementSurface);
- }
+ pSglInfo->pVisualElement->SetSurface(pVisualElementSurface);
}
pSglInfo->pBitmap = bitmap.release();
SysTryReturn(NID_GRP, pVisualElementSurface != null, EGL_NO_SURFACE, E_OPERATION_FAILED, "Propagating.");
_VisualElementSurfaceImpl* pVisualElementSurfaceImpl = _VisualElementSurfaceImpl::GetInstance(*pVisualElementSurface);
- SysTryReturn(NID_GRP, pVisualElementSurfaceImpl != null, EGL_NO_SURFACE, E_OPERATION_FAILED, "Propagating.");
+ if (pVisualElementSurfaceImpl == null)
+ {
+ SysLogException(NID_GRP, E_OPERATION_FAILED, "Propagating.");
+ delete pVisualElementSurface;
+ return EGL_NO_SURFACE;
+ }
Evas_Object* pObject = (Evas_Object*)pVisualElementSurfaceImpl->GetNativeHandle();
delete pVisualElementSurface;