[Mono-bugs] [Bug 78285][Nor] New - Graphics.DrawIcon memory leak ?

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu May 4 05:26:18 EDT 2006

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by xenomorph2 at onlinehome.de.


--- shadow/78285	2006-05-04 05:26:18.000000000 -0400
+++ shadow/78285.tmp.9612	2006-05-04 05:26:18.000000000 -0400
@@ -0,0 +1,24 @@
+Bug#: 78285
+Product: Mono: Class Libraries
+Version: unspecified
+OS Details: 
+Status: NEW   
+Priority: Normal
+Component: Sys.Drawing.
+AssignedTo: peter at novonyx.com                            
+ReportedBy: xenomorph2 at onlinehome.de               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: Graphics.DrawIcon memory leak ?
+Graphics.DrawIcon creates a bitmap for an icon with Icon.ToBitmap() but it
+doesn't dispose the bitmap (Icon.ToBitmap always creates a new bitmap).
+Though, for performance reasons, it would be better to keep a reference of
+the bitmap in Icon and only create a new bitmap if the bitmap is null.
+Icons are not that big so a few more KB shouldn't matter...

More information about the mono-bugs mailing list