diff options
author | Teng-Hui Zhu <ztenghui@google.com> | 2011-11-16 16:41:46 -0800 |
---|---|---|
committer | Teng-Hui Zhu <ztenghui@google.com> | 2011-11-16 16:43:35 -0800 |
commit | 17374f84814bd0398b7d9f10fe6c3f517a0762df (patch) | |
tree | 8df0e0943e0e4aa55dc18472739fa285183140c5 | |
parent | 047c2fb0008c735609e24b536007bf27b02ae4e6 (diff) | |
download | external_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
-rw-r--r-- | Source/WebCore/platform/graphics/android/GLUtils.cpp | 3 |
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; } |