diff options
author | Narayan Kamath <narayan@google.com> | 2017-04-24 13:55:51 +0100 |
---|---|---|
committer | Narayan Kamath <narayan@google.com> | 2017-04-25 11:33:32 +0100 |
commit | de1819e35f05acf0acbbaace42c2e54797383ad7 (patch) | |
tree | d86e1df3e70eeed841b8436ea9bff5d2fa82fb2e /tools/docs/crypto/crypto_docs.py | |
parent | 37030d1489bc3a76c835617a8a8059e0b47dea71 (diff) |
CharsetEncoderICU: Don't call updateCallback from <init>.
Changed for correctness and for consistency with CharsetDecoderICU.
The existing code is incorrect because we'd end up deleting the same
allocation twice (once from NativeAllocationRegistry's reference queue,
and once from the finally block) if updateCallback throws.
Related to b/37315864.
Test: run cts -m CtsLibcoreTestCases
Change-Id: I5425093ed7fbdc4aa69f5b9108428399b3c8c555
Diffstat (limited to 'tools/docs/crypto/crypto_docs.py')
0 files changed, 0 insertions, 0 deletions