Unplanned
Last Updated: 14 Mar 2017 08:16 by ADMIN
ADMIN
Deyan
Created on: 14 Mar 2017 08:12
Category: PdfProcessing
Type: Bug Report
0
PdfProcessing: Stream is not disposed from PdfStreamWriter or PdfFileSource classes when the Dispose method is not called explicitly
The current implementation of IDisposable implements a simple Dispose method which releases the inner stream resource. However, if the PdfStreamWriter instance is not disposed explicitly by calling Dispose() or by surrounding it in "using" clause, then the inner Stream resource is not Disposed as well. The same applies for PdfFileSource class.

We should implement the IDisposable pattern in a way that the GC disposes the inner stream if needed when collecting the PdfStreamWriter/PdfFileSource class instances.
0 comments