The GDI+ flat interface (gdiplusflat.h) declares a function GdipCreateStreamOnFile
How is that stream supposed to be closed?
By calling pStream->Release().
pStream->Release()