ICU-10345 Call adoptInstead instead of orphan to avoid memory leak
X-SVN-Rev: 34264
This commit is contained in:
parent
a183ef1302
commit
90fd46df00
@ -728,7 +728,7 @@ void ThreadSafeFormat::init(UErrorCode &status) {
|
||||
}
|
||||
|
||||
void ThreadSafeFormat::fini(UErrorCode &status) {
|
||||
gFormat.orphan();
|
||||
gFormat.adoptInstead(NULL);
|
||||
}
|
||||
|
||||
ThreadSafeFormat::ThreadSafeFormat() {
|
||||
|
Loading…
Reference in New Issue
Block a user