gdiplus: Remove an ipicture reference in GdipCreateBitmapFromStream.

This commit is contained in:
Vincent Povirk 2009-08-20 16:43:47 -05:00 committed by Alexandre Julliard
parent e72defc8f7
commit 7246a487d9
1 changed files with 2 additions and 2 deletions

View File

@ -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? */
}