Author: aolk
Date: 2005-12-21 16:40:42 -0500 (Wed, 21 Dec 2005)
New Revision: 54707

Modified:
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ColorDialog.cs
Log:
2005-12-21  Alexander Olk  <[EMAIL PROTECTED]>

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



Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2005-12-21 21:20:51 UTC (rev 54706)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2005-12-21 21:40:42 UTC (rev 54707)
@@ -1,3 +1,8 @@
+2005-12-21  Alexander Olk  <[EMAIL PROTECTED]>
+
+       * 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  <[EMAIL PROTECTED]>
 
        * Control.cs (CreateControl): Don't do anything if the control is

Modified: 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ColorDialog.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ColorDialog.cs   
2005-12-21 21:20:51 UTC (rev 54706)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ColorDialog.cs   
2005-12-21 21:40:42 UTC (rev 54707)
@@ -1778,10 +1778,8 @@
                        
                        private void Draw( PaintEventArgs e )
                        {
-                               Bitmap bmp = new Bitmap( drawingBitmap.Bitmap );
+                               e.Graphics.DrawImage( drawingBitmap.Bitmap, 0, 
0 );
                                
-                               e.Graphics.DrawImage( bmp, 0, 0 );
-                               
                                // drawCross is false if the mouse gets moved...
                                if ( drawCross )
                                {

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to