Skip to content
Commit d371e43f authored by Thomas Guillem's avatar Thomas Guillem
Browse files

jni: fix invalid ReleaseStringUTFChars() call

This function must only be used to release a java string returned by
GetStringUTFChars().

Strings allocated via NewStringUTF() must not be released, only the local ref
should (it will be released by the garbage collector once it's not referenced
anymore).

This fixes a major memory corruption leading to various incoherent crashes.
parent 8a5e8493
Loading
Loading
Loading
Pipeline #7512 passed with stage
in 26 minutes and 9 seconds
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment