From: Michael Ow Date: Wed, 11 Sep 2013 00:03:06 +0000 (+0000) Subject: ICU-10345 Call adoptInstead instead of orphan to avoid memory leak X-Git-Tag: milestone-59-0-1~2575 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=90fd46df00504b8358a29cb0dbb9263fbb1c0883;p=icu ICU-10345 Call adoptInstead instead of orphan to avoid memory leak X-SVN-Rev: 34264 --- diff --git a/icu4c/source/test/intltest/tsmthred.cpp b/icu4c/source/test/intltest/tsmthred.cpp index f469cfd6662..efd899ee047 100644 --- a/icu4c/source/test/intltest/tsmthred.cpp +++ b/icu4c/source/test/intltest/tsmthred.cpp @@ -728,7 +728,7 @@ void ThreadSafeFormat::init(UErrorCode &status) { } void ThreadSafeFormat::fini(UErrorCode &status) { - gFormat.orphan(); + gFormat.adoptInstead(NULL); } ThreadSafeFormat::ThreadSafeFormat() {