fix invalid size calculation in ReleaseStringUTFChars

This commit is contained in:
Joel Dice 2013-02-21 15:36:01 -07:00
parent d414fd4c7b
commit 204bbc134d

View File

@ -219,7 +219,7 @@ ReleaseStringUTFChars(Thread* t, jstring s, const char* chars)
{
ENTER(t, Thread::ActiveState);
t->m->heap->free(chars, stringLength(t, *s) + 1);
t->m->heap->free(chars, stringUTFLength(t, *s) + 1);
}
void JNICALL