fix potential memory leak with converting byte arrays to bitmaps
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user