From: YongGeol Jung Date: Fri, 26 Apr 2013 07:39:21 +0000 (+0900) Subject: Fix memory leak of graphics surface.(Emulator) X-Git-Tag: submit/tizen_2.1/20130514.045449~55^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=53d8e84f4dcafe21fe9b3efe4087e12836eed90d;p=framework%2Fweb%2Fwebkit-efl.git Fix memory leak of graphics surface.(Emulator) [Title] Fix memory leak of graphics surface.(Emulator) [Issue#] N/A [Problem] Private data is not freed. [Cause] [Solution] Free private data. Change-Id: I3ceef4a149af2c4696ab8a9ce49daf780f4b5fff --- diff --git a/Source/WebCore/platform/graphics/surfaces/efl/GraphicsSurfaceEfl.cpp b/Source/WebCore/platform/graphics/surfaces/efl/GraphicsSurfaceEfl.cpp index 126bbc6..3bd6424 100755 --- a/Source/WebCore/platform/graphics/surfaces/efl/GraphicsSurfaceEfl.cpp +++ b/Source/WebCore/platform/graphics/surfaces/efl/GraphicsSurfaceEfl.cpp @@ -224,10 +224,10 @@ void GraphicsSurface::platformDestroy() m_texture = 0; } - /*if (m_private) { + if (m_private) { delete m_private; m_private = 0; - }*/ + } } void GraphicsSurface::platformCopyToGLTexture(uint32_t target, uint32_t id, const IntRect& targetRect, const IntPoint& offset)