diff options
author | Steve Block <steveblock@google.com> | 2012-04-05 11:40:27 +0100 |
---|---|---|
committer | Steve Block <steveblock@google.com> | 2012-04-05 11:40:27 +0100 |
commit | 02e159d45d6ecf733b834c350ef2035cd979a200 (patch) | |
tree | 58477a9b660c2433075a084efff18691a65b24e8 /Source/WebCore/platform/qt/WidgetQt.cpp | |
parent | 27ecdfb1b551244c4c15289fa375f07bee2f95da (diff) | |
download | external_webkit-02e159d45d6ecf733b834c350ef2035cd979a200.zip external_webkit-02e159d45d6ecf733b834c350ef2035cd979a200.tar.gz external_webkit-02e159d45d6ecf733b834c350ef2035cd979a200.tar.bz2 |
Avoid leaking a JNI local ref in JavaInputStreamWrapper::read()
Make sure we release the local ref returned by NewByteArray() once we've taken a
global ref to the array.
Also fix up the rest of the file to use ScopedLocalRef to avoid this kind of
problem in future.
Bug: 5498704
Change-Id: I33754a0188a3c08a5c34d0e161cd7073f83070c6
Diffstat (limited to 'Source/WebCore/platform/qt/WidgetQt.cpp')
0 files changed, 0 insertions, 0 deletions