Skip to content
Commit 0e0d392c authored by Volker Krause's avatar Volker Krause
Browse files

Ensure QAndroidJniObjects from implicit conversion outlive the JNI call

When passing in complex types that we can implicitly convert we went
directly to the jobject handle via a temporary QAndroidJniObject so far,
which at the point of the actual call has been invalid already. Instead
we now split argument processing into two parts. In the first step we only
go up to the QAndroidJniObject, and we store those on the stack to outlive
the JNI call. The second step then does the final conversion to the jobject
handle.
parent 080c6ae5
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment