OSDN Git Service

Fix JNI reference leak in NativeActivity. (DO NOT MERGE)
authorJeff Brown <jeffbrown@google.com>
Mon, 8 Nov 2010 23:59:19 +0000 (15:59 -0800)
committerJeff Brown <jeffbrown@google.com>
Tue, 9 Nov 2010 00:03:13 +0000 (16:03 -0800)
commit8f6068e63ec93c671412bafee44e69fb73adecf6
tree2531ae3492bb66570479a050101fdb4cfdf3c9c3
parent5fd3054048b41b033700be3f30e4bca69f4f13a6
Fix JNI reference leak in NativeActivity. (DO NOT MERGE)

This change ensures that the native activity releases the KeyEvent
objects that it allocates since they will not be released
automatically and eventually the JNI slot table will overflow
and crash the process.

Bug: 3170494
Change-Id: I2ea527f056096fae9bc9e7685dccb56ec7a0e8b4
core/jni/android_app_NativeActivity.cpp