diff options
Diffstat (limited to 'vcl/source/control/field.cxx')
-rw-r--r-- | vcl/source/control/field.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/vcl/source/control/field.cxx b/vcl/source/control/field.cxx index 4c061fd11fc1..50c83c1b20d8 100644 --- a/vcl/source/control/field.cxx +++ b/vcl/source/control/field.cxx @@ -379,14 +379,13 @@ FormatterBase::FormatterBase() FormatterBase::~FormatterBase() { - delete mpLocaleDataWrapper; } LocaleDataWrapper& FormatterBase::ImplGetLocaleDataWrapper() const { if ( !mpLocaleDataWrapper ) { - const_cast<FormatterBase*>(this)->mpLocaleDataWrapper = new LocaleDataWrapper( GetLanguageTag() ); + const_cast<FormatterBase*>(this)->mpLocaleDataWrapper.reset( new LocaleDataWrapper( GetLanguageTag() ) ); } return *mpLocaleDataWrapper; } |