Fix memory leak in JNI skString util (#1218)
Fixes - [SKIKO-1150](https://youtrack.jetbrains.com/issue/SKIKO-1150) Based on the book *The Java Native Interface: Programmer's Guide and Specification* > The ReleaseStringChars call is necessary whether GetStringChars has set *isCopy to JNI_TRUE or JNI_FALSE. ReleaseStringChars either frees the copy or unpins the instance, depending upon whether GetStringChars has returned a copy or not.
Showing
Please register or sign in to comment