Commit 7246a487 authored by Vincent Povirk's avatar Vincent Povirk Committed by Alexandre Julliard

gdiplus: Remove an ipicture reference in GdipCreateBitmapFromStream.

parent e72defc8
......@@ -646,8 +646,8 @@ GpStatus WINGDIPAPI GdipCreateBitmapFromStream(IStream* stream,
return stat;
if((*bitmap)->image.type != ImageTypeBitmap){
IPicture_Release((*bitmap)->image.picture);
GdipFree(bitmap);
GdipDisposeImage(&(*bitmap)->image);
*bitmap = NULL;
return GenericError; /* FIXME: what error to return? */
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment