Commit 73003705 authored by Stephen R. van den Berg's avatar Stephen R. van den Berg
Browse files

Stdio.Buffer: Explicitly clear io->this to mark destruction.

parent 7ff945f4
......@@ -2854,6 +2854,7 @@ PIKECLASS Buffer
Buffer *io = THIS;
io->this = 0;
io_unlink_external_storage( io );
if( io->error_mode )
free_program( io->error_mode );
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment