ICU-10345 Call adoptInstead instead of orphan to avoid memory leak

X-SVN-Rev: 34264
This commit is contained in:
Michael Ow 2013-09-11 00:03:06 +00:00
parent a183ef1302
commit 90fd46df00

View File

@ -728,7 +728,7 @@ void ThreadSafeFormat::init(UErrorCode &status) {
}
void ThreadSafeFormat::fini(UErrorCode &status) {
gFormat.orphan();
gFormat.adoptInstead(NULL);
}
ThreadSafeFormat::ThreadSafeFormat() {