USE_MEMORY_NOWRAPPERS
This commit is contained in:
parent
4ddb69b56f
commit
5294efe679
|
|
@ -190,7 +190,7 @@ close_read_file(istream *stream) const {
|
|||
// the stream pointer does not call the appropriate global delete
|
||||
// function; instead apparently calling the system delete
|
||||
// function. So we call the delete function by hand instead.
|
||||
#ifndef NDEBUG
|
||||
#ifndef USE_MEMORY_NOWRAPPERS
|
||||
stream->~istream();
|
||||
(*global_operator_delete)(stream);
|
||||
#else
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ close_read_file(istream *stream) const {
|
|||
// the stream pointer does not call the appropriate global delete
|
||||
// function; instead apparently calling the system delete
|
||||
// function. So we call the delete function by hand instead.
|
||||
#ifndef NDEBUG
|
||||
#ifndef USE_MEMORY_NOWRAPPERS
|
||||
stream->~istream();
|
||||
(*global_operator_delete)(stream);
|
||||
#else
|
||||
|
|
|
|||
|
|
@ -605,12 +605,12 @@ close_read_file(istream *stream) const {
|
|||
// the stream pointer does not call the appropriate global delete
|
||||
// function; instead apparently calling the system delete
|
||||
// function. So we call the delete function by hand instead.
|
||||
#ifndef NDEBUG
|
||||
#ifndef USE_MEMORY_NOWRAPPERS
|
||||
stream->~istream();
|
||||
(*global_operator_delete)(stream);
|
||||
#else
|
||||
#else
|
||||
delete stream;
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue