OSDN Git Service

2003-09-30 Paolo Carlini <pcarlini@unitus.it>
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 30 Sep 2003 13:44:59 +0000 (13:44 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 30 Sep 2003 13:44:59 +0000 (13:44 +0000)
commitdf1b5e1c2470d33edf2485fb26882d5f76ac62fb
treecaf8885058ab66104de77af179f4bba5efb1f0cf
parent0e1d7e201cc021012ff5cbc0ec62132c80ed33b9
2003-09-30  Paolo Carlini  <pcarlini@unitus.it>

PR libstdc++/12438
* include/bits/locale_facets.tcc (locale::combine): Don't
leak memory if _M_replace_facet throws.
* testsuite/22_locale/locale/cons/12438.cc: New, from the PR.

* include/bits/locale_classes.h (locale::locale(const locale&,
_Facet*)): Tweak, use consistently _M_remove_reference.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71943 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/locale_classes.h
libstdc++-v3/include/bits/locale_facets.tcc
libstdc++-v3/testsuite/22_locale/locale/cons/12438.cc [new file with mode: 0644]