mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-08 23:10:40 +00:00
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:
parent
cff2dce3f5
commit
42040b3e4a
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue