fix emul mem leak
authorSukwon Suh <sukwon.suh@samsung.com>
Fri, 3 May 2013 07:47:03 +0000 (16:47 +0900)
committerSukwon Suh <sukwon.suh@samsung.com>
Fri, 3 May 2013 07:50:17 +0000 (16:50 +0900)
Change-Id: Id50aacd437f2225f317d905bcddae6d832cc7c39
Signed-off-by: Sukwon Suh <sukwon.suh@samsung.com>
src/graphics/opengl/FGrpEgl.cpp

index 3a2f767..2ebc33d 100644 (file)
@@ -355,6 +355,14 @@ _OnBoundsChanged(void* pData)
        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);