No Subject
No
No
Tue Jun 1 12:43:00 GMT 1999
Sorry for not getting it right first time.
nathan
--
Dr Nathan Sidwell :: Computer Science Department :: Bristol University
You can up the bandwidth, but you can't up the speed of light
nathan@acm.org http://www.cs.bris.ac.uk/~nathan/ nathan@cs.bris.ac.uk
--------------927DB22F8BB3B451B6220542
Content-Type: text/plain; charset=us-ascii; name="streambuf.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="streambuf.patch"
libio/ChangeLog:
Fri Apr 16 09:44:36 BST 1999 Nathan Sidwell <nathan@acm.org>
* streambuf.h (ios::~ios): Use operator delete[] to remove _arrays.
Index: egcs/libio/streambuf.h
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/libio/streambuf.h,v
retrieving revision 1.5
diff -c -3 -p -r1.5 streambuf.h
*** streambuf.h 1998/02/24 20:09:55 1.5
--- streambuf.h 1999/04/16 08:40:42
*************** inline ios::~ios() {
*** 482,488 ****
#ifndef _IO_NEW_STREAMS
if (!(_flags & (unsigned int)ios::dont_close)) delete rdbuf();
#endif
! if (_arrays) delete [] _arrays;
}
} // extern "C++"
#endif /* _STREAMBUF_H */
--- 482,490 ----
#ifndef _IO_NEW_STREAMS
if (!(_flags & (unsigned int)ios::dont_close)) delete rdbuf();
#endif
! // It is safe to use naked operator delete[] as we know elements have no
! // dtor, and g++ does not add a new[] cookie for such cases.
! operator delete[] (_arrays);
}
} // extern "C++"
#endif /* _STREAMBUF_H */
--------------927DB22F8BB3B451B6220542--
More information about the Libstdc++
mailing list