fix potential memory leak with converting byte arrays to bitmaps

This commit is contained in:
Jonathan Jenne
2020-11-06 11:12:45 +01:00
parent 18482491ab
commit cf7a55203b
4 changed files with 33 additions and 15 deletions

View File

@@ -288,9 +288,6 @@ Public Class ClassControlCreator
Return control
End Function
Private Shared Function ByteArrayToBitmap(bytearray() As Byte) As Bitmap
Return New Bitmap(New System.IO.MemoryStream(bytearray))
End Function
Public Shared Function CreateExistingButton(row As DataRow, designMode As Boolean) As Button
Dim oControl As Button = CreateBaseControl(New Button(), row, designMode)