From 7aaf5291c788af37d267404ca5392804dbc8ffb9 Mon Sep 17 00:00:00 2001 From: jdgordon Date: Sun, 31 Oct 2010 11:53:36 +0000 Subject: [PATCH] fix a mem leak by calling the corect ReleaseString method git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28409 a1c6a512-1295-4272-9138-f99709370657 --- apps/hosted/keyboard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/hosted/keyboard.c b/apps/hosted/keyboard.c index b395168156..be5c70c896 100644 --- a/apps/hosted/keyboard.c +++ b/apps/hosted/keyboard.c @@ -68,7 +68,7 @@ int kbd_input(char* text, int buflen) ret = e->CallObjectMethod(env_ptr, RockboxKeyboardInput_instance, kbd_result); } while (!ret); - e->ReleaseStringChars(env_ptr, str, NULL); + e->ReleaseStringUTFChars(env_ptr, str, NULL); retchars = e->GetStringUTFChars(env_ptr, ret, 0); if (retchars[0]) snprintf(text, buflen, retchars); -- 2.11.4.GIT