commit | d195554563cbb9b760aaebd7a1468ae69941490e | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Mon Dec 21 16:36:28 2009 -0800 |
committer | Elliott Hughes <enh@google.com> | Mon Dec 21 16:39:37 2009 -0800 |
tree | 38ea3c663bfb14ba9ed01f9c0d689706fe72a485 | |
parent | e16658257b519d7866f3027bc6cde84ab2ef12a3 [diff] |
Fix leaks in ICU JNI. Consistently use RAII to ensure we always clean up our UResourceBundle*s. Remove redundant allocation/copying from the UnicodeString to jstring conversion. Also simplify a few other repetitive bits of code. Note that getContentImpl is still in the old style because that function contains gotos. The right fix for that function involves changing the Java side to work with a class containing a field for each item, rather than the current Object[].