ICU-11389 Fixed a problem in Win32DateFormat assignment operator which triggered intltest.exe crash in u_cleanup with the recent DateFormat caching change.

X-SVN-Rev: 36756
This commit is contained in:
Yoshito Umaoka 2014-11-20 00:08:49 +00:00
parent cff2dce3f5
commit 42040b3e4a

View file

@ -1,6 +1,6 @@
/*
********************************************************************************
* Copyright (C) 2005-2013, International Business Machines
* Copyright (C) 2005-2014, International Business Machines
* Corporation and others. All Rights Reserved.
********************************************************************************
*
@ -124,7 +124,7 @@ Win32DateFormat &Win32DateFormat::operator=(const Win32DateFormat &other)
// delete fCalendar;
this->fDateTimeMsg = other.fDateTimeMsg;
this->fDateTimeMsg = other.fDateTimeMsg == NULL ? NULL : new UnicodeString(*other.fDateTimeMsg);
this->fTimeStyle = other.fTimeStyle;
this->fDateStyle = other.fDateStyle;
this->fLocale = other.fLocale;