summaryrefslogtreecommitdiffstats
path: root/libstdc++-v3/config
diff options
context:
space:
mode:
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2008-11-10 13:47:12 +0000
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2008-11-10 13:47:12 +0000
commitad1c08ca13ac0f611cf5536581acde09eb2a9688 (patch)
treedbba73176cd96e6497f23cfff7b9adbf198f43ae /libstdc++-v3/config
parentb706ce783fb1b87923421ff8633ab32a52eb4d5d (diff)
downloadppe42-gcc-ad1c08ca13ac0f611cf5536581acde09eb2a9688.tar.gz
ppe42-gcc-ad1c08ca13ac0f611cf5536581acde09eb2a9688.zip
2008-11-10 Paolo Carlini <paolo.carlini@oracle.com>
PR libstdc++/38067 * config/locale/gnu/monetary_members.cc (moneypunct<>:: _M_initialize_moneypunct(__c_locale, const char*)): Use correct vector delete for __wcs_ps and __wcs_ns. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@141740 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/config')
-rw-r--r--libstdc++-v3/config/locale/gnu/monetary_members.cc11
1 files changed, 6 insertions, 5 deletions
diff --git a/libstdc++-v3/config/locale/gnu/monetary_members.cc b/libstdc++-v3/config/locale/gnu/monetary_members.cc
index 28683b5fae4..ea2b4fcad4e 100644
--- a/libstdc++-v3/config/locale/gnu/monetary_members.cc
+++ b/libstdc++-v3/config/locale/gnu/monetary_members.cc
@@ -1,6 +1,7 @@
// std::moneypunct implementation details, GNU version -*- C++ -*-
-// Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
+// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
+// Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
@@ -455,8 +456,8 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
{
delete _M_data;
_M_data = 0;
- delete __wcs_ps;
- delete __wcs_ns;
+ delete [] __wcs_ps;
+ delete [] __wcs_ns;
#if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2)
__uselocale(__old);
#else
@@ -601,8 +602,8 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
{
delete _M_data;
_M_data = 0;
- delete __wcs_ps;
- delete __wcs_ns;
+ delete [] __wcs_ps;
+ delete [] __wcs_ns;
#if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2)
__uselocale(__old);
#else
OpenPOWER on IntegriCloud