diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2010-10-31 11:53:36 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2010-10-31 11:53:36 +0000 |
commit | cc758e42b9456c6093636647ae1dd8f64e639ff0 (patch) | |
tree | bbfc21cd50b5d37c7c603cd40d3a5788adfe9041 /apps/hosted | |
parent | b673ae2c46129d6994b61a351a1567c56f4aef82 (diff) |
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
Diffstat (limited to 'apps/hosted')
-rw-r--r-- | apps/hosted/keyboard.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |