From 1dadb43ecbcf1e2b7d45a5493c6c77cd77f605ca Mon Sep 17 00:00:00 2001 From: Vincent Povirk Date: Thu, 20 Aug 2009 16:43:47 -0500 Subject: [PATCH] gdiplus: remove an ipicture reference in GdipCreateBitmapFromStream --- dlls/gdiplus/image.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/gdiplus/image.c b/dlls/gdiplus/image.c index 2ed64f8..a99c0b7 100644 --- a/dlls/gdiplus/image.c +++ b/dlls/gdiplus/image.c @@ -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? */ } -- 1.5.4.3