Permalink
Browse files

2005-12-21 Alexander Olk <alex.olk@googlemail.com>

	* ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
	  Bitmaps were created and not disposed.


svn path=/trunk/mcs/; revision=54707
  • Loading branch information...
1 parent 3540f1f commit 1095677ca28b5e0daddff30b46a0842287af2986 Alexander Olk committed Dec 21, 2005
View
5 mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
@@ -1,3 +1,8 @@
+2005-12-21 Alexander Olk <alex.olk@googlemail.com>
+
+ * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
+ Bitmaps were created and not disposed.
+
2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
* Control.cs (CreateControl): Don't do anything if the control is
View
4 mcs/class/Managed.Windows.Forms/System.Windows.Forms/ColorDialog.cs
@@ -1778,9 +1778,7 @@ protected override void OnPaint( PaintEventArgs e )
private void Draw( PaintEventArgs e )
{
- Bitmap bmp = new Bitmap( drawingBitmap.Bitmap );
-
- e.Graphics.DrawImage( bmp, 0, 0 );
+ e.Graphics.DrawImage( drawingBitmap.Bitmap, 0, 0 );
// drawCross is false if the mouse gets moved...
if ( drawCross )

0 comments on commit 1095677

Please sign in to comment.