From cc758e42b9456c6093636647ae1dd8f64e639ff0 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Sun, 31 Oct 2010 11:53:36 +0000 Subject: 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(-) (limited to 'apps/hosted') 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); -- cgit v1.2.3