* System.Drawing/Image.cs: On win32, when cloning images initialized from
authorAndreia Gaita <avidigal@novell.com>
Fri, 21 Nov 2008 05:39:11 +0000 (05:39 -0000)
committerAndreia Gaita <avidigal@novell.com>
Fri, 21 Nov 2008 05:39:11 +0000 (05:39 -0000)
commit0605c47f81b64506d24a11415a2e72381b71e8e1
treef7516dbc2db0c14e5a9bfa98c68860aa1cf66645
parent884e641b8065fdd234f67fb3caa4a0e60fe141a7
* System.Drawing/Image.cs: On win32, when cloning images initialized from
  resources, also clone the underlying stream, since it needs to stay
  around for the life of the image (gdi doesn't clone the underlying
  stream when cloning images, so when the gc disposes the original, it
  will also dispose the stream, which invalidates the clone).

* System.Drawing/Bitmap.cs: Save the underlying stream when creating bitmaps from a
  clone under win32

* System.Drawing.Imaging/Metafile.cs: Save the underlying stream when creating from a
  clone under win32

  [fixes #438886]

2008-11-21  Andreia Gaita  <shana@jitted.com>

svn path=/trunk/mcs/; revision=119580
mcs/class/System.Drawing/System.Drawing.Imaging/ChangeLog
mcs/class/System.Drawing/System.Drawing.Imaging/Metafile.cs
mcs/class/System.Drawing/System.Drawing/Bitmap.cs
mcs/class/System.Drawing/System.Drawing/ChangeLog
mcs/class/System.Drawing/System.Drawing/Image.cs