mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-18 11:14:22 +00:00
ICU-10345 Call adoptInstead instead of orphan to avoid memory leak
X-SVN-Rev: 34264
This commit is contained in:
parent
a183ef1302
commit
90fd46df00
1 changed files with 1 additions and 1 deletions
|
@ -728,7 +728,7 @@ void ThreadSafeFormat::init(UErrorCode &status) {
|
|||
}
|
||||
|
||||
void ThreadSafeFormat::fini(UErrorCode &status) {
|
||||
gFormat.orphan();
|
||||
gFormat.adoptInstead(NULL);
|
||||
}
|
||||
|
||||
ThreadSafeFormat::ThreadSafeFormat() {
|
||||
|
|
Loading…
Add table
Reference in a new issue