diff options
author | John Reck <jreck@google.com> | 2012-08-08 17:27:13 -0700 |
---|---|---|
committer | John Reck <jreck@google.com> | 2012-08-09 10:24:16 -0700 |
commit | 28c43cfac56492d4d307386c44ab9a1121f7d3bf (patch) | |
tree | f94fbd32d41b138fb7a3f237ce04e4bef8721ef9 /Source/WebKit/android/jni/DeviceMotionClientImpl.cpp | |
parent | 0e8bb60087a019d104b6eb4aa8abd11bd91b16c4 (diff) | |
download | external_webkit-28c43cfac56492d4d307386c44ab9a1121f7d3bf.zip external_webkit-28c43cfac56492d4d307386c44ab9a1121f7d3bf.tar.gz external_webkit-28c43cfac56492d4d307386c44ab9a1121f7d3bf.tar.bz2 |
DO NOT MERGE Fix memory leak
Cherry pick
Bug: 6952980
GraphicsContext::createOffscreenContext creates an instance of both
PlatformGraphicsSkia and GraphicsContext for ImageBuffer. However,
ImageBuffer will only call delete on the GraphicsContext. In normal
GC usage, the PlatformGraphicsContext's lifecycle is longer than the
GCs, and is cleaned up by itself. This will result in leaking the
PlatformGraphicsSkia context, though. We need to make sure to call
delete on the PlatformGraphicsSkia context if we were initialized
with the deleteUs() flag, which is used to indicate just this scenario.
Change-Id: If908dcb44e99568b92ee63d6337ce9f84adc9adf
Diffstat (limited to 'Source/WebKit/android/jni/DeviceMotionClientImpl.cpp')
0 files changed, 0 insertions, 0 deletions