mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-07-11 01:25:07 +02:00
Merge pull request #19738 from hrydgard/joystick-java-bug
Android joystick event handling: Don't blow up java ref counting by forgetting ReleaseElements.
This commit is contained in:
@@ -170,7 +170,7 @@ bool TextDrawerAndroid::DrawStringBitmap(std::vector<uint8_t> &bitmapData, TextS
|
||||
} else {
|
||||
_assert_msg_(false, "Bad TextDrawer format");
|
||||
}
|
||||
env->ReleaseIntArrayElements(imageData, jimage, 0);
|
||||
env->ReleaseIntArrayElements(imageData, jimage, JNI_ABORT);
|
||||
env->DeleteLocalRef(imageData);
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -1290,6 +1290,8 @@ extern "C" void Java_org_ppsspp_ppsspp_NativeApp_joystickAxis(
|
||||
}
|
||||
NativeAxis(axis, count);
|
||||
delete[] axis;
|
||||
env->ReleaseIntArrayElements(axisIds, axisIdBuffer, JNI_ABORT); // ABORT just means we don't want changes copied back!
|
||||
env->ReleaseFloatArrayElements(values, valueBuffer, JNI_ABORT); // ABORT just means we don't want changes copied back!
|
||||
}
|
||||
|
||||
extern "C" jboolean Java_org_ppsspp_ppsspp_NativeApp_mouseWheelEvent(
|
||||
|
||||
Reference in New Issue
Block a user