* streambuf.h (ios::~ios): Use operator delete[] to remove _arrays.
From-SVN: r26691
This commit is contained in:
parent
4c6eb8f55d
commit
9939c435d2
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
1999-04-29 Nathan Sidwell <nathan@acm.org>
|
||||
|
||||
* streambuf.h (ios::~ios): Use operator delete[] to remove _arrays.
|
||||
|
||||
Mon Apr 12 19:22:44 1999 Mumit Khan <khan@xraylith.wisc.edu>
|
||||
|
||||
* filedoalloc.c (_POSIX_SOURCE): Remove definition.
|
||||
|
|
|
@ -482,7 +482,9 @@ inline ios::~ios() {
|
|||
#ifndef _IO_NEW_STREAMS
|
||||
if (!(_flags & (unsigned int)ios::dont_close)) delete rdbuf();
|
||||
#endif
|
||||
if (_arrays) delete [] _arrays;
|
||||
// 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 */
|
||||
|
|
Loading…
Add table
Reference in a new issue