]> gcc.gnu.org Git - gcc.git/commitdiff
streambuf.cc (streambuf::~streambuf): Don't delete _lock for _IO_stdin/_IO_stdout...
authorH.J. Lu <hjl@gnu.org>
Sat, 6 Dec 1997 07:32:08 +0000 (00:32 -0700)
committerJeff Law <law@gcc.gnu.org>
Sat, 6 Dec 1997 07:32:08 +0000 (00:32 -0700)
        * streambuf.cc (streambuf::~streambuf): Don't delete _lock
        for _IO_stdin/_IO_stdout/_IO_stderr.

From-SVN: r16972

libio/ChangeLog
libio/streambuf.cc

index 56dc8937dafc5b5344b3abbaeb3d2d7ec97316c5..3e730b679dbfb22794e6eabe3a36a77de10bfaba 100644 (file)
@@ -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.
index e87590f86d126cff6df96d74e4694898e112ebf0..4393cf08cfd426b82f992ba08d17a8776c5ee957 100644 (file)
@@ -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
 }
 
This page took 0.065246 seconds and 5 git commands to generate.