Re: gdiplus: Add a test to show that GdipCloneImage is not supposed to increase refcount of the source image stream, but clone it instead.
29 Jun
2012
29 Jun
'12
2:38 a.m.
I think it's most likely not keeping the input stream in the new image at all. It's probably also worth testing SelectActiveFrame, GetPropertyItem, and GetImageRawFormat with clones of images. Maybe they don't work.
29 Jun
29 Jun
2:57 a.m.
New subject: gdiplus: Add a test to show that GdipCloneImage is not supposed to increase refcount of the source image stream, but clone it instead.
Vincent Povirk <madewokherd(a)gmail.com> wrote:
I think it's most likely not keeping the input stream in the new image at all.
It's probably also worth testing SelectActiveFrame, GetPropertyItem, and GetImageRawFormat with clones of images. Maybe they don't work.
A quick test shows that SelectActiveFrame called on a clone of a multiframe gif image succeeds under nt4 and win2k, but fails under all later gdiplus implementations. Looks like a clone does not really clone anything. -- Dmitry.
4916
Age (days ago)
4916
Last active (days ago)
1 comments
2 participants
participants (2)
-
Dmitry Timoshkov -
Vincent Povirk