Fix memory leak of graphics surface.(Emulator)
authorYongGeol Jung <yg48.jung@samsung.com>
Fri, 26 Apr 2013 07:39:21 +0000 (16:39 +0900)
committerYongGeol Jung <yg48.jung@samsung.com>
Fri, 26 Apr 2013 07:39:21 +0000 (16:39 +0900)
[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

index 126bbc6..3bd6424 100755 (executable)
@@ -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)