From 00425ad08342ab19e34e579548145fffd8eacbc8 Mon Sep 17 00:00:00 2001 From: law Date: Sat, 6 Dec 1997 07:32:08 +0000 Subject: [PATCH] * streambuf.cc (streambuf::~streambuf): Don't delete _lock for _IO_stdin/_IO_stdout/_IO_stderr. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@16972 138bc75d-0d04-0410-961f-82ee72b054a4 --- libio/ChangeLog | 7 ++++++- libio/streambuf.cc | 3 ++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/libio/ChangeLog b/libio/ChangeLog index 56dc8937daf..3e730b679db 100644 --- a/libio/ChangeLog +++ b/libio/ChangeLog @@ -1,6 +1,11 @@ +Fri Dec 5 16:22:15 1997 H.J. Lu (hjl@gnu.org) + + * streambuf.cc (streambuf::~streambuf): Don't delete _lock + for _IO_stdin/_IO_stdout/_IO_stderr. + Thu Nov 27 01:32:43 1997 Jeffrey A Law (law@cygnus.com) - * Makefile.in (insatll): Change gxx_includedir to gcc_include_dir. + * Makefile.in (install): Change gxx_includedir to gcc_include_dir. * config.shared (gxx_includedir): Remove default definition. * config/linux.mt: Change gxx_includedir to gxx_include_dir. * config/linuxaxp1.mt: Likewise. diff --git a/libio/streambuf.cc b/libio/streambuf.cc index e87590f86d1..4393cf08cfd 100644 --- a/libio/streambuf.cc +++ b/libio/streambuf.cc @@ -220,7 +220,8 @@ streambuf::~streambuf() { _IO_default_finish(this,0); #ifdef _IO_MTSAFE_IO - delete _lock; + if (this != _IO_stdin && this != _IO_stdout && this != _IO_stderr) + delete _lock; #endif } -- 2.11.0