gdiplus: Remove an ipicture reference in GdipCreateBitmapFromStream.
This commit is contained in:
parent
e72defc8f7
commit
7246a487d9
|
@ -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? */
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue