diff options
author | Teng-Hui Zhu <ztenghui@google.com> | 2011-11-17 10:07:22 -0800 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-11-17 10:07:22 -0800 |
commit | 2a4c3c2c45acd8eaab2107710ad6e86d6792d025 (patch) | |
tree | 45e672a212cdf4e7779c9d7775bfabe70fdb15c6 /Source/WebCore | |
parent | 928a43ae51e06ad20ac9dcae2b35182fc32dc84e (diff) | |
parent | 17374f84814bd0398b7d9f10fe6c3f517a0762df (diff) | |
download | external_webkit-2a4c3c2c45acd8eaab2107710ad6e86d6792d025.zip external_webkit-2a4c3c2c45acd8eaab2107710ad6e86d6792d025.tar.gz external_webkit-2a4c3c2c45acd8eaab2107710ad6e86d6792d025.tar.bz2 |
Merge "Fix one memory leak only in DEBUG mode"
Diffstat (limited to 'Source/WebCore')
-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; } |