* System.Drawing/Image.cs: On win32, when cloning images initialized from
authorAndreia Gaita <avidigal@novell.com>
Fri, 21 Nov 2008 05:50:55 +0000 (05:50 -0000)
committerAndreia Gaita <avidigal@novell.com>
Fri, 21 Nov 2008 05:50:55 +0000 (05:50 -0000)
commitd6717fd548bff03e9a00f95e48fb5106a848dc65
treeb7576c34feba48ceb9fd5f8b62ca0725f6c5fe2f
parent4e17e21b2a822c6f718cca0ccb02f39b72c71a9d
* 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, Backported from r119580]

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

svn path=/branches/mono-2-2/mcs/; revision=119581
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