diff --git a/panda/src/express/virtualFile.cxx b/panda/src/express/virtualFile.cxx index 715ac61e1f..c5be78d4e1 100644 --- a/panda/src/express/virtualFile.cxx +++ b/panda/src/express/virtualFile.cxx @@ -193,7 +193,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