Change-Id: Id50aacd437f2225f317d905bcddae6d832cc7c39
Signed-off-by: Sukwon Suh <sukwon.suh@samsung.com>
pSglInfo->surface = null;
SysTryReturnVoidResult(NID_GRP, ret == EGL_TRUE, E_OPERATION_FAILED, "eglDestroySurface failed.");
+#if defined(FGRAPHICS_INTERNAL_USE_EGLCOPYBUFFER)
+ if (pSglInfo->pEcoreImage != null)
+ {
+ ecore_x_image_free(pSglInfo->pEcoreImage);
+ pSglInfo->pEcoreImage = null;
+ }
+#endif
+
FloatRectangle rect = pSglInfo->pVisualElement->GetBounds();
int width = int(rect.width);
int height = int(rect.height);