summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorTeng-Hui Zhu <ztenghui@google.com>2011-11-16 16:41:46 -0800
committerTeng-Hui Zhu <ztenghui@google.com>2011-11-16 16:43:35 -0800
commit17374f84814bd0398b7d9f10fe6c3f517a0762df (patch)
tree8df0e0943e0e4aa55dc18472739fa285183140c5 /Source
parent047c2fb0008c735609e24b536007bf27b02ae4e6 (diff)
downloadexternal_webkit-17374f84814bd0398b7d9f10fe6c3f517a0762df.zip
external_webkit-17374f84814bd0398b7d9f10fe6c3f517a0762df.tar.gz
external_webkit-17374f84814bd0398b7d9f10fe6c3f517a0762df.tar.bz2
Fix one memory leak only in DEBUG mode
We should always delete the temporary pixels. Change-Id: Idc4cf939cf3a50ddb557d544deb911c64b0547df
Diffstat (limited to 'Source')
-rw-r--r--Source/WebCore/platform/graphics/android/GLUtils.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/WebCore/platform/graphics/android/GLUtils.cpp b/Source/WebCore/platform/graphics/android/GLUtils.cpp
index d1fe51a..1b816f2 100644
--- a/Source/WebCore/platform/graphics/android/GLUtils.cpp
+++ b/Source/WebCore/platform/graphics/android/GLUtils.cpp
@@ -370,6 +370,9 @@ GLuint GLUtils::createBaseTileGLTexture(int width, int height)
GLUtils::checkGlError("glTexImage2D");
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
+#ifdef DEBUG
+ delete pixels;
+#endif
return texture;
}