From 53d8e84f4dcafe21fe9b3efe4087e12836eed90d Mon Sep 17 00:00:00 2001 From: YongGeol Jung Date: Fri, 26 Apr 2013 16:39:21 +0900 Subject: [PATCH] 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 --- Source/WebCore/platform/graphics/surfaces/efl/GraphicsSurfaceEfl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.7.4