Skip to content

Commit 3854d32

Browse files
Closing the bitmapstream for UnknownBitMapDecoder (#8174)
* close the bitmapstream * move closing stream to catch
1 parent 17abd91 commit 3854d32

File tree

1 file changed

+1
-0
lines changed
  • src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging

1 file changed

+1
-0
lines changed

src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapDecoder.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1190,6 +1190,7 @@ out decoder
11901190
}
11911191
catch
11921192
{
1193+
bitmapStream.Close();
11931194
#pragma warning disable 6500
11941195

11951196
decoderHandle = null;

0 commit comments

Comments
 (0)