Add some protection against opening multiple streams in the same file at the same time.

This commit is contained in:
Michael R Sweet
2022-07-04 13:03:11 -04:00
parent 50f27974cf
commit 067683cbcd
5 changed files with 33 additions and 7 deletions

View File

@@ -174,6 +174,8 @@ pdfioStreamClose(pdfio_stream_t *st) // I - Stream
done:
st->pdf->current_obj = NULL;
free(st->prbuffer);
free(st->psbuffer);
free(st);